concat: when releasing pad, send EOS appropriately.

Previously, concat sent an EOS if there was a next pad.

https://bugzilla.gnome.org/show_bug.cgi?id=751107
This commit is contained in:
Mathieu Duponchelle 2015-06-17 16:12:13 +02:00 committed by Sebastian Dröge
parent c50e47343a
commit 056283ff85

View file

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