summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-03 20:11:46 +0200
committerwm4 <wm4@nowhere>2013-05-05 18:44:24 +0200
commit4d14a42997154861e541c34d25a26d272fcbd152 (patch)
tree5ec5d4f948ebcbe72e6275a37c2f85ddad44bc2f /stream/stream_dvd.c
parent36444332249e28cc053df83b9a81da492cfca079 (diff)
downloadmpv-4d14a42997154861e541c34d25a26d272fcbd152.tar.bz2
mpv-4d14a42997154861e541c34d25a26d272fcbd152.tar.xz
stream: add start time reporting
Will be needed to override the demuxer's start time reporting. We could be lazy and special-case it since the result is always 0 for the streams that care, but doing it properly is better.
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 0b85e320ba..5df9b390e7 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -624,6 +624,11 @@ static int control(stream_t *stream,int cmd,void* arg)
*((double *)arg) = (double) mp_get_titleset_length(d->vts_file, d->tt_srpt, d->cur_title-1)/1000.0;
return 1;
}
+ case STREAM_CTRL_GET_START_TIME:
+ {
+ *((double *)arg) = 0;
+ return 1;
+ }
case STREAM_CTRL_GET_NUM_TITLES:
{
*((unsigned int *)arg) = d->vmg_file->tt_srpt->nr_of_srpts;