summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-03 19:52:28 +0200
committerwm4 <wm4@nowhere>2013-05-05 18:44:23 +0200
commitacad31c2d382043f1c43c74a678de659a54a3788 (patch)
treeeb7d9a07f8ea0316e6faff2ce410fb298e50352c /stream/stream_dvd.c
parent977dc4c63df0c38d6ce34b51f97352eb3d0e91e9 (diff)
downloadmpv-acad31c2d382043f1c43c74a678de659a54a3788.tar.bz2
mpv-acad31c2d382043f1c43c74a678de659a54a3788.tar.xz
core: don't report byte-based playback position with dvd
DVD playback uses a demuxer that signals to the frontend that timestamp resets are possible. This made the frontend calculate the OSD playback position based on the byte position and the total size of the stream. This actually broke DVD playback position display. Since DVD reports a a linear playback position, we don't have to rely on the demuxer reported position, so disable this functionality in case of DVD playback. This reverts the OSD behavior with DVD to the old behavior.
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 0207ae3969..0b85e320ba 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -712,6 +712,8 @@ static int control(stream_t *stream,int cmd,void* arg)
snprintf(req->name, sizeof(req->name), "%c%c", lang >> 8, lang);
return STREAM_OK;
}
+ case STREAM_CTRL_MANAGES_TIMELINE:
+ return STREAM_OK;
}
return STREAM_UNSUPPORTED;
}