summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-12-07 16:44:53 +0100
committerRudolf Polzer <divverent@xonotic.org>2012-12-07 16:44:53 +0100
commitdf28eac342ec649068cddd03717f00e81790c523 (patch)
treef40f4dfc45a208ffbd82d60198eb90a6b95a1178 /stream
parentf62c670709402699f8d5bb418f5f361a59f9b60f (diff)
downloadmpv-df28eac342ec649068cddd03717f00e81790c523.tar.bz2
mpv-df28eac342ec649068cddd03717f00e81790c523.tar.xz
stream_dvd: add a stream_seek() call
This fixes use of -chapter together with -correct-pts and demux_lavf and stream_dvd.
Diffstat (limited to 'stream')
-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 b30092134c..097355bce4 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -490,6 +490,8 @@ static int seek_to_chapter(stream_t *stream, ifo_handle_t *vts_file, tt_srpt_t *
d->angle_seek = 0;
pos = (int64_t) d->cur_pack * 2048;
+ stream_seek(stream, pos);
+
mp_msg(MSGT_OPEN,MSGL_V,"\r\nSTREAM_DVD, seeked to chapter: %d, cell: %u, pos: %"PRIu64"\n",
chapter, d->cur_pack, pos);