mirror of https://github.com/mpv-player/mpv
player: remove unnecessary code
This part is already done by open_stream_async().
This commit is contained in:
parent
3cbd79b35b
commit
ac54f10490
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue