From da1925ae2e2287fcd19a83dfc433b9d3d5ef9a1f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Jul 2014 20:43:06 +0200 Subject: player: simplify logic on video errors Fatal errors in the vidoe chain (such as failing to initialize the video chain) disable video decoding. Restart the playloop, instead of just continuing the current iteration. The resulting behavior should be the same, but it gets rid of possible corner cases. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/playloop.c b/player/playloop.c index 0622fca72b..a8965ba3d0 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -968,7 +968,7 @@ void run_playloop(struct MPContext *mpctx) mpctx->stop_play = PT_NEXT_ENTRY; mpctx->error_playing = true; handle_force_window(mpctx, true); - break; + return; // restart loop } if (r == VD_EOF) { -- cgit v1.2.3