diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-04-17 16:56:11 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-17 16:56:11 +0200 |
commit | db8f15fe4ea1686023584fcebd218a9c5e354caf (patch) | |
tree | 334e3be8bbfe766906e3d18525df6315e30d5bad /src/QuickMedia.cpp | |
parent | ceb1a46b665440c45b97071a8b233ff44275ddaf (diff) |
Fix possible freeze in video player when closing it, or it moving to the next video when closing it
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index ac236b4..151c136 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3738,6 +3738,7 @@ namespace QuickMedia { } else { current_page = previous_page; go_to_previous_page = true; + break; } } else if(event.type == mgl::Event::KeyPressed && event.key.code == mgl::Keyboard::Q) { current_page = previous_page; @@ -3906,7 +3907,7 @@ namespace QuickMedia { current_page = previous_page; go_to_previous_page = true; break; - } else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0 && (!is_matrix || is_youtube)) { + } else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0 && (!is_matrix || is_youtube) && !go_to_previous_page) { std::string new_video_url; if(!video_page->should_autoplay()) { |