aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-17 22:36:45 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-17 22:36:45 +0200
commit94d217c957183844c6267fa34d6b5778123f88f8 (patch)
tree9737056c9f91cd6240f08810aefb0e03923cb116 /src
parent387aa042bbe89b575407240f58910e34bb7423a7 (diff)
Make cursor visible if next video fails to play
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 95a0a63..f5aaea5 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1583,10 +1583,11 @@ namespace QuickMedia {
} else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0) {
fprintf(stderr, "mpv exited with status 0, the user most likely closed mpv with 'q'\n");
current_page = previous_page;
+ break;
} else if(update_err != VideoPlayer::Error::OK) {
show_notification("Video player", "The video player failed to play the video", Urgency::CRITICAL);
current_page = previous_page;
- return;
+ break;
}
// TODO: Show loading video animation. load_video needs to be made asynchronous first