summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-07 22:07:26 +0200
committerwm4 <wm4@nowhere>2014-10-07 22:13:36 +0200
commitac54f104909fcf92f04529834d374e9404c513f2 (patch)
tree5e3c3a872448e86749b34002383ae54adcd7bd63
parent3cbd79b35b6c17ea35f23ae8820a22778e507b71 (diff)
downloadmpv-ac54f104909fcf92f04529834d374e9404c513f2.tar.bz2
mpv-ac54f104909fcf92f04529834d374e9404c513f2.tar.xz
player: remove unnecessary code
This part is already done by open_stream_async().
-rw-r--r--player/loadfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index b07bdc6e3c..bcaebf14a4 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -987,10 +987,8 @@ static void play_current_file(struct MPContext *mpctx)
if (!opts->load_unsafe_playlists)
stream_flags |= mpctx->playing->stream_flags;
mpctx->stream = open_stream_async(mpctx, stream_filename, stream_flags);
- if (!mpctx->stream) { // error...
- mp_process_input(mpctx);
+ if (!mpctx->stream)
goto terminate_playback;
- }
if (opts->stream_dump && opts->stream_dump[0]) {
stream_dump(mpctx);