mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
x264enc: do not leak peer pad reference
This commit is contained in:
parent
0d362e5572
commit
0bc0a31c96
1 changed files with 2 additions and 0 deletions
|
@ -1495,6 +1495,8 @@ gst_x264_enc_sink_get_caps (GstPad * pad)
|
||||||
|
|
||||||
caps = gst_caps_intersect (peercaps, templcaps);
|
caps = gst_caps_intersect (peercaps, templcaps);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
|
gst_object_unref (peer);
|
||||||
|
peer = NULL;
|
||||||
} else {
|
} else {
|
||||||
caps = gst_caps_ref (gst_pad_get_pad_template_caps (pad));
|
caps = gst_caps_ref (gst_pad_get_pad_template_caps (pad));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue