diff options
author | wm4 <wm4@nowhere> | 2013-12-13 00:31:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-13 00:31:28 +0100 |
commit | ebf6d0004b7d574e6013d648fb9d78dfac06c26b (patch) | |
tree | 04c7148351af9772d7d41e573547d84daf46112f | |
parent | ce8fe6d815c0a5cede115070981404538c512d58 (diff) | |
download | mpv-ebf6d0004b7d574e6013d648fb9d78dfac06c26b.tar.bz2 mpv-ebf6d0004b7d574e6013d648fb9d78dfac06c26b.tar.xz |
dvb: prevent seek when reopening the demuxer
Since dvb input is not seekable anyway, this would probably just flush
the stream buffer, but at least it'll avoid a bogus message about
seeking errors.
-rw-r--r-- | mpvcore/player/loadfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mpvcore/player/loadfile.c b/mpvcore/player/loadfile.c index 72d17086f9..33d10ed610 100644 --- a/mpvcore/player/loadfile.c +++ b/mpvcore/player/loadfile.c @@ -1202,8 +1202,10 @@ goto_reopen_demuxer: ; else dir = DVB_CHANNEL_LOWER; - if (dvb_step_channel(mpctx->stream, dir)) + if (dvb_step_channel(mpctx->stream, dir)) { mpctx->stop_play = PT_RELOAD_DEMUXER; + mpctx->stream->start_pos = stream_tell(mpctx->stream); + } } #endif goto terminate_playback; |