concat: when releasing pad, send EOS appropriately.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Wed, 17 Jun 2015 14:12:13 +0000 (16:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jun 2015 12:15:28 +0000 (14:15 +0200)
Previously, concat sent an EOS if there was a next pad.

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

plugins/elements/gstconcat.c

index 839ff2f..41e93f7 100644 (file)
@@ -354,7 +354,7 @@ gst_concat_release_pad (GstElement * element, GstPad * pad)
 
   g_mutex_lock (&self->lock);
   if (self->current_sinkpad == GST_PAD_CAST (spad)) {
-    eos = ! !gst_concat_switch_pad (self);
+    eos = !gst_concat_switch_pad (self);
     current_pad_removed = TRUE;
     do_notify = TRUE;
   }