mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
aggregator: Invalidate pad's tail position ...
when dequeuing a segment event. https://bugzilla.gnome.org/show_bug.cgi?id=784593
This commit is contained in:
parent
7b82eb546f
commit
4f81aa8742
1 changed files with 4 additions and 0 deletions
|
@ -1430,6 +1430,10 @@ gst_aggregator_default_sink_event (GstAggregator * self,
|
|||
PAD_LOCK (aggpad);
|
||||
GST_OBJECT_LOCK (aggpad);
|
||||
gst_event_copy_segment (event, &aggpad->segment);
|
||||
/* We've got a new segment, tail_position is now meaningless
|
||||
* and may interfere with the time_level calculation
|
||||
*/
|
||||
aggpad->priv->tail_position = GST_CLOCK_TIME_NONE;
|
||||
update_time_level (aggpad, FALSE);
|
||||
GST_OBJECT_UNLOCK (aggpad);
|
||||
PAD_UNLOCK (aggpad);
|
||||
|
|
Loading…
Reference in a new issue