mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: In PULL mode, nothing is ever going to send us a SEGMENT event
https://bugzilla.gnome.org/show_bug.cgi?id=767071
This commit is contained in:
parent
f3e68164e4
commit
f8eb909d90
1 changed files with 2 additions and 11 deletions
|
@ -2080,7 +2080,6 @@ gst_qtdemux_handle_sink_event (GstPad * sinkpad, GstObject * parent,
|
||||||
QtDemuxStream *stream;
|
QtDemuxStream *stream;
|
||||||
gint idx;
|
gint idx;
|
||||||
GstSegment segment;
|
GstSegment segment;
|
||||||
GstEvent *segment_event;
|
|
||||||
|
|
||||||
/* some debug output */
|
/* some debug output */
|
||||||
gst_event_copy_segment (event, &segment);
|
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_segment_copy_into (&segment, &demux->segment);
|
||||||
GST_DEBUG_OBJECT (demux, "Pushing newseg %" GST_SEGMENT_FORMAT, &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 */
|
/* map segment to internal qt segments and push on each stream */
|
||||||
gst_qtdemux_map_and_push_segments (demux, &segment);
|
gst_qtdemux_map_and_push_segments (demux, &segment);
|
||||||
}
|
|
||||||
|
|
||||||
/* clear leftover in current segment, if any */
|
/* clear leftover in current segment, if any */
|
||||||
gst_adapter_clear (demux->adapter);
|
gst_adapter_clear (demux->adapter);
|
||||||
|
|
Loading…
Reference in a new issue