mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
deinterleave: fix caps leak
Caps from the pad template are being leaked. In any case it is from a static pad template and will 'leak' in the end, just doing the cleanup for the good practice.
This commit is contained in:
parent
81a76853cf
commit
ad5bc461c8
1 changed files with 3 additions and 1 deletions
|
@ -520,8 +520,10 @@ gst_deinterleave_sink_getcaps (GstPad * pad, GstObject * parent,
|
||||||
for (l = GST_ELEMENT (self)->pads; l != NULL; l = l->next) {
|
for (l = GST_ELEMENT (self)->pads; l != NULL; l = l->next) {
|
||||||
GstPad *ourpad = GST_PAD (l->data);
|
GstPad *ourpad = GST_PAD (l->data);
|
||||||
GstCaps *peercaps = NULL, *ourcaps;
|
GstCaps *peercaps = NULL, *ourcaps;
|
||||||
|
GstCaps *templ_caps = gst_pad_get_pad_template_caps (ourpad);
|
||||||
|
|
||||||
ourcaps = gst_caps_copy (gst_pad_get_pad_template_caps (ourpad));
|
ourcaps = gst_caps_copy (templ_caps);
|
||||||
|
gst_caps_unref (templ_caps);
|
||||||
|
|
||||||
if (pad == ourpad) {
|
if (pad == ourpad) {
|
||||||
if (GST_PAD_DIRECTION (pad) == GST_PAD_SINK)
|
if (GST_PAD_DIRECTION (pad) == GST_PAD_SINK)
|
||||||
|
|
Loading…
Reference in a new issue