diff options
author | wm4 <wm4@nowhere> | 2013-05-03 19:52:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-05 18:44:23 +0200 |
commit | acad31c2d382043f1c43c74a678de659a54a3788 (patch) | |
tree | eb7d9a07f8ea0316e6faff2ce410fb298e50352c /stream/stream.h | |
parent | 977dc4c63df0c38d6ce34b51f97352eb3d0e91e9 (diff) | |
download | mpv-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.h')
-rw-r--r-- | stream/stream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index c47452aeb9..b6fe40b56a 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -101,6 +101,8 @@ #define STREAM_CTRL_GET_CACHE_FILL 16 #define STREAM_CTRL_GET_CACHE_IDLE 17 #define STREAM_CTRL_RECONNECT 18 +// DVD/Bluray, signal general support for GET_CURRENT_TIME etc. +#define STREAM_CTRL_MANAGES_TIMELINE 19 struct stream_lang_req { int type; // STREAM_AUDIO, STREAM_SUB @@ -406,6 +408,8 @@ int stream_read_internal(stream_t *s, void *buf, int len); /// Internal seek function bypassing the stream buffer int stream_seek_internal(stream_t *s, int64_t newpos); +bool stream_manages_timeline(stream_t *s); + extern int dvd_title; extern int dvd_angle; |