summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-05-31 16:53:50 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-06-01 09:32:03 +0300
commitf8eb909d904c8551f94884537f3bb5613bf88e30 (patch)
tree432ee4d7bcdb960087724916907fdc54c7a03d9d /gst
parentf3e68164e4ce4ec7b0a7ec717fa9bf5cc2302c01 (diff)
qtdemux: In PULL mode, nothing is ever going to send us a SEGMENT event
https://bugzilla.gnome.org/show_bug.cgi?id=767071
Diffstat (limited to 'gst')
-rw-r--r--gst/isomp4/qtdemux.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 719efe954..f7507f464 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -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);