summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSeungha Yang <sh.yang@lge.com>2017-05-16 23:20:44 +0900
committerEdward Hervey <bilboed@bilboed.com>2017-06-12 16:03:24 +0200
commite1bbea8355bce5917710b4e18ea8533b37a3d616 (patch)
treeb6331cd3b479dcbc04ec813ced249deaa19ff7f5 /ext
parenta2bc92ec3ec6922cf321970953036648c9c39e2b (diff)
downloadgstreamer-plugins-bad-e1bbea8355bce5917710b4e18ea8533b37a3d616.tar.gz
dashdemux: Initialize sidx_position to GST_CLOCK_TIME_NONE
If a manifest has non-zero presentation time offset (i.e., earliest presentation time specified by sidx box is not zero), the initial sidx position shouldn't be zero. Since we cannot define exact sidx position until parsing sidx box, set the value to unknown. https://bugzilla.gnome.org/show_bug.cgi?id=782693
Diffstat (limited to 'ext')
-rw-r--r--ext/dash/gstdashdemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index cac483293..6c0ade7f7 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -723,6 +723,7 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux)
(stream), tags);
stream->index = i;
stream->pending_seek_ts = GST_CLOCK_TIME_NONE;
+ stream->sidx_position = GST_CLOCK_TIME_NONE;
if (active_stream->cur_adapt_set &&
active_stream->cur_adapt_set->RepresentationBase &&
active_stream->cur_adapt_set->RepresentationBase->ContentProtection) {