x264: fix memory leak
When the allowed caps are the same of template caps the allowed caps are not unrefed, leaking memory. https://bugzilla.gnome.org/show_bug.cgi?id=784060
This commit is contained in:
parent
6b03e61bf3
commit
c15a00537f
@ -2204,6 +2204,7 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc,
|
||||
"downstream has ANY caps, outputting byte-stream");
|
||||
encoder->current_byte_stream = GST_X264_ENC_STREAM_FORMAT_BYTE_STREAM;
|
||||
g_string_append_printf (encoder->option_string, ":annexb=1");
|
||||
gst_caps_unref (allowed_caps);
|
||||
} else if (allowed_caps) {
|
||||
GstStructure *s;
|
||||
const gchar *profile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user