aggregator: Don't try to push tags while flush seeking
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 19 Feb 2015 23:30:35 +0000 (18:30 -0500)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
The downstream segment could have been flushed already, so
need to re-send the segment event before re-sending the tags.

https://bugzilla.gnome.org/show_bug.cgi?id=742684

libs/gst/base/gstaggregator.c

index 947bfea..6c94678 100644 (file)
@@ -448,7 +448,7 @@ gst_aggregator_push_mandatory_events (GstAggregator * self)
     GST_DEBUG_OBJECT (self, "pushing segment %" GST_PTR_FORMAT, segment);
   }
 
-  if (priv->tags && priv->tags_changed) {
+  if (priv->tags && priv->tags_changed && !self->priv->flush_seeking) {
     tags = gst_event_new_tag (gst_tag_list_ref (priv->tags));
     priv->tags_changed = FALSE;
   }