From: Sebastian Dröge Date: Thu, 2 Oct 2014 07:13:28 +0000 (+0300) Subject: capsfilter: Push pending events before a buffer also if upstream never configured... X-Git-Tag: 1.6.1~728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=798cafa7fc2716478d4e3bbcdfd2c89340c7ecc5;p=platform%2Fupstream%2Fgstreamer.git capsfilter: Push pending events before a buffer also if upstream never configured caps but we have srcpad caps already Otherwise we never send pending events downstream that arrive after we configured caps on the srcpad. https://bugzilla.gnome.org/show_bug.cgi?id=737735 --- diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c index b859285..97793e8 100644 --- a/plugins/elements/gstcapsfilter.c +++ b/plugins/elements/gstcapsfilter.c @@ -341,6 +341,9 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input, } else { ret = GST_FLOW_NOT_NEGOTIATED; } + } else { + gst_capsfilter_push_pending_events (filter, pending_events); + pending_events = NULL; } g_list_free_full (pending_events, (GDestroyNotify) gst_event_unref);