summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-20 20:43:06 +0200
committerwm4 <wm4@nowhere>2014-07-20 20:43:06 +0200
commitda1925ae2e2287fcd19a83dfc433b9d3d5ef9a1f (patch)
treea61f326cfaede62fb5c051ccc0ba15d45e39150a
parent9736f3309acf387e42aef847f594463e3351bbc2 (diff)
downloadmpv-da1925ae2e2287fcd19a83dfc433b9d3d5ef9a1f.tar.bz2
mpv-da1925ae2e2287fcd19a83dfc433b9d3d5ef9a1f.tar.xz
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.
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
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) {