summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-04 02:59:42 +0200
committerwm4 <wm4@nowhere>2013-05-05 18:44:24 +0200
commite4837b2d423e728bc294fb77c0d01b957c78848f (patch)
treed2ea6830d194c777a4b59f89bf3b9c66acdf9874 /demux
parente5f18eb82516a8d9e78185c9542d1e29e2819f18 (diff)
downloadmpv-e4837b2d423e728bc294fb77c0d01b957c78848f.tar.bz2
mpv-e4837b2d423e728bc294fb77c0d01b957c78848f.tar.xz
core: ignore backstep command if demuxer is not capable
Also, mark demuxer as not capable if DVD playback is done. The problem with DVD is that playback time (stream_pts) is not reported frame-exact, and the time is a "guess" at best.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 305d414bfa..06b1a35d0f 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -925,6 +925,8 @@ static struct demuxer *open_given_type(struct MPOpts *opts,
if (stream_manages_timeline(demuxer->stream)) {
// Incorrect, but fixes some behavior with DVD/BD
demuxer->ts_resets_possible = false;
+ // Doesn't work, because stream_pts is a "guess".
+ demuxer->accurate_seek = false;
}
demuxer_sort_chapters(demuxer);
return demuxer;