mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 01:53:32 +00:00
player: remove automatic DVB channel advancement on no data
For the sake of removing the separate stream/demuxer loading code. This could probably be reimplemented in some other way, but I have no DVB hardware for testing. The most preferred way would be making DVB to not quit, and just rerun the stream selection.
This commit is contained in:
parent
899dfa957f
commit
a9bbaa5eb2
@ -1195,12 +1195,6 @@ goto_reopen_demuxer: ;
|
||||
!mpctx->current_track[0][STREAM_AUDIO])
|
||||
{
|
||||
MP_FATAL(mpctx, "No video or audio streams selected.\n");
|
||||
struct demuxer *d = mpctx->demuxer;
|
||||
if (d->stream->uncached_type == STREAMTYPE_DVB) {
|
||||
int dir = mpctx->last_dvb_step;
|
||||
if (demux_stream_control(d, STREAM_CTRL_DVB_STEP_CHANNEL, &dir) > 0)
|
||||
mpctx->stop_play = PT_RELOAD_DEMUXER;
|
||||
}
|
||||
mpctx->error_playing = MPV_ERROR_NOTHING_TO_PLAY;
|
||||
goto terminate_playback;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user