From ac54f104909fcf92f04529834d374e9404c513f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Oct 2014 22:07:26 +0200 Subject: player: remove unnecessary code This part is already done by open_stream_async(). --- player/loadfile.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3