mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
capsfilter: Don't leak caps
This commit is contained in:
parent
ece5909804
commit
a21008ff2e
1 changed files with 2 additions and 0 deletions
|
@ -355,6 +355,8 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
|
||||||
|
|
||||||
if (!gst_pad_has_current_caps (trans->srcpad))
|
if (!gst_pad_has_current_caps (trans->srcpad))
|
||||||
gst_pad_push_event (trans->srcpad, gst_event_new_caps (out_caps));
|
gst_pad_push_event (trans->srcpad, gst_event_new_caps (out_caps));
|
||||||
|
else
|
||||||
|
gst_caps_unref (out_caps);
|
||||||
} else {
|
} else {
|
||||||
gchar *caps_str = gst_caps_to_string (out_caps);
|
gchar *caps_str = gst_caps_to_string (out_caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue