summaryrefslogtreecommitdiff
path: root/ext/x264
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-06-21 21:23:29 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-06-21 21:26:53 +0200
commitc15a00537fd11cd71b7dc4bbd4e39c47be1129a8 (patch)
treec1c3f10a3e435eedccfa2852ba17fd326fab05ff /ext/x264
parent6b03e61bf3c778b1bb41cd42850876f1bb00986b (diff)
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
Diffstat (limited to 'ext/x264')
-rw-r--r--ext/x264/gstx264enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 49d99f15..069761d2 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -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;