typefind: Only push CAPS event once if we get one from upstream

https://bugzilla.gnome.org/show_bug.cgi?id=692784
This commit is contained in:
Sebastian Dröge 2013-04-29 12:56:54 +02:00
parent 2a34f767d4
commit 32e05f8a1e

View file

@ -613,10 +613,7 @@ gst_type_find_element_sink_event (GstPad * pad, GstObject * parent,
{
GstCaps *caps;
/* first pass the caps event downstream */
res = gst_pad_push_event (typefind->src, gst_event_ref (event));
/* then parse and push out our data */
/* Parse and push out our caps and data */
gst_event_parse_caps (event, &caps);
res = gst_type_find_element_setcaps (typefind, caps);