dashdemux: Initialize sidx_position to GST_CLOCK_TIME_NONE
authorSeungha Yang <sh.yang@lge.com>
Tue, 16 May 2017 14:20:44 +0000 (23:20 +0900)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 12 Jun 2017 14:03:24 +0000 (16:03 +0200)
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

ext/dash/gstdashdemux.c

index cac483293624a2ebbf99510d27e82c0fa5197826..6c0ade7f7c09c0f9c8c3122b76e57cc67d83c250 100644 (file)
@@ -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) {