summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2017-04-13 22:11:55 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-12-05 10:47:16 -0500
commit309330f8c0a28eeebd3fa809f82c20c25ca65de5 (patch)
tree08f623ff8e46d4ddfe562cb0b2dc195479774061
parent96cd1b549e4be343c4cd79b0b3c5c980218f9a7e (diff)
downloadgstreamer-plugins-bad-309330f8c0a28eeebd3fa809f82c20c25ca65de5.tar.gz
aggregator: Invalidate pad's tail position ...
when dequeuing a segment event. https://bugzilla.gnome.org/show_bug.cgi?id=784593
-rw-r--r--gst-libs/gst/base/gstaggregator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/base/gstaggregator.c b/gst-libs/gst/base/gstaggregator.c
index d0ec234c8..9ad572b47 100644
--- a/gst-libs/gst/base/gstaggregator.c
+++ b/gst-libs/gst/base/gstaggregator.c
@@ -1120,6 +1120,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);