x264enc: fix caps leak in set_format()

https://bugzilla.gnome.org/show_bug.cgi?id=730865
This commit is contained in:
Aurélien Zanelli 2014-05-28 09:49:59 +02:00 committed by Sebastian Dröge
parent eb65696251
commit 84b2009155

View file

@ -1804,6 +1804,7 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc,
if (gst_caps_is_empty (allowed_caps)) {
gst_caps_unref (allowed_caps);
gst_caps_unref (template_caps);
return FALSE;
}