x264enc: fix caps leak in set_format()
https://bugzilla.gnome.org/show_bug.cgi?id=730865
This commit is contained in:
parent
eb65696251
commit
84b2009155
@ -1804,6 +1804,7 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc,
|
|||||||
|
|
||||||
if (gst_caps_is_empty (allowed_caps)) {
|
if (gst_caps_is_empty (allowed_caps)) {
|
||||||
gst_caps_unref (allowed_caps);
|
gst_caps_unref (allowed_caps);
|
||||||
|
gst_caps_unref (template_caps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user