From f0122e7386e0e4fe63dafa9c1835ae0b04557ee4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 14 Sep 2020 02:31:06 +0200 Subject: Do not show error when quiting video with 'q' --- src/QuickMedia.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 4b528cf..6935995 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1299,6 +1299,9 @@ namespace QuickMedia { show_notification("Video player", "Failed to connect to mpv ipc after 10 seconds", Urgency::CRITICAL); current_page = previous_page; break; + } 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; } 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; -- cgit v1.2.3