aggregator: always unref the buffer on _finish function
authorThiago Santos <ts.santos@sisa.samsung.com>
Sat, 28 Jun 2014 12:32:32 +0000 (09:32 -0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:25 +0000 (15:10 +0000)
Otherwise the user doesn't know if it was unref'd or not

libs/gst/base/gstaggregator.c

index debcbbf..67ba269 100644 (file)
@@ -361,6 +361,7 @@ gst_aggregator_finish_buffer (GstAggregator * self, GstBuffer * buffer)
     GST_INFO_OBJECT (self, "Not pushing (active: %i, flushing: %i)",
         g_atomic_int_get (&self->priv->flush_seeking),
         gst_pad_is_active (self->srcpad));
+    gst_buffer_unref (buffer);
     return GST_FLOW_OK;
   }
 }