mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +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:
@@ -1195,12 +1195,6 @@ goto_reopen_demuxer: ;
|
|||||||
!mpctx->current_track[0][STREAM_AUDIO])
|
!mpctx->current_track[0][STREAM_AUDIO])
|
||||||
{
|
{
|
||||||
MP_FATAL(mpctx, "No video or audio streams selected.\n");
|
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;
|
mpctx->error_playing = MPV_ERROR_NOTHING_TO_PLAY;
|
||||||
goto terminate_playback;
|
goto terminate_playback;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user