qtdemux: In PULL mode, nothing is ever going to send us a SEGMENT event
authorSebastian Dröge <sebastian@centricular.com>
Tue, 31 May 2016 13:53:50 +0000 (16:53 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 1 Jun 2016 06:32:03 +0000 (09:32 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=767071

gst/isomp4/qtdemux.c

index 719efe954df6a463ca27ec06929ebd3eca7d9912..f7507f464241c9f870e50a155b822c9ffd85eab6 100644 (file)
@@ -2080,7 +2080,6 @@ gst_qtdemux_handle_sink_event (GstPad * sinkpad, GstObject * parent,
       QtDemuxStream *stream;
       gint idx;
       GstSegment segment;
-      GstEvent *segment_event;
 
       /* some debug output */
       gst_event_copy_segment (event, &segment);
@@ -2163,16 +2162,8 @@ gst_qtdemux_handle_sink_event (GstPad * sinkpad, GstObject * parent,
       gst_segment_copy_into (&segment, &demux->segment);
       GST_DEBUG_OBJECT (demux, "Pushing newseg %" GST_SEGMENT_FORMAT, &segment);
 
-      /* For pull mode, segment activation will be handled in the looping task
-       * For push mode, need to do it here */
-      if (demux->pullbased) {
-        segment_event = gst_event_new_segment (&segment);
-        gst_event_set_seqnum (segment_event, gst_event_get_seqnum (event));
-        gst_qtdemux_push_event (demux, segment_event);
-      } else {
-        /* map segment to internal qt segments and push on each stream */
-        gst_qtdemux_map_and_push_segments (demux, &segment);
-      }
+      /* map segment to internal qt segments and push on each stream */
+      gst_qtdemux_map_and_push_segments (demux, &segment);
 
       /* clear leftover in current segment, if any */
       gst_adapter_clear (demux->adapter);