mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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);
|
||||
gst_caps_unref (peercaps);
|
||||
gst_object_unref (peer);
|
||||
peer = NULL;
|
||||
} else {
|
||||
caps = gst_caps_ref (gst_pad_get_pad_template_caps (pad));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue