capsfilter: fix caps leak

gst_event_new_caps does not steal a reference to the caps.
This commit is contained in:
René Stadler 2011-10-12 14:34:24 +02:00
parent 724d52300e
commit fdd115d8c3

View file

@ -355,8 +355,7 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
if (!gst_pad_has_current_caps (trans->srcpad))
gst_pad_push_event (trans->srcpad, gst_event_new_caps (out_caps));
else
gst_caps_unref (out_caps);
gst_caps_unref (out_caps);
} else {
gchar *caps_str = gst_caps_to_string (out_caps);