From 27b0ee204cad5364417b11d9b6cb3e1ee8c31309 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 4 May 2011 12:39:17 +0200 Subject: [PATCH] x264enc: Copy the template caps, it's not allowed to increase the refcount of const caps --- ext/x264/gstx264enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index ff3a34f..66e7647 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1498,7 +1498,7 @@ gst_x264_enc_sink_get_caps (GstPad * pad) gst_object_unref (peer); peer = NULL; } else { - caps = gst_caps_ref (gst_pad_get_pad_template_caps (pad)); + caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); } gst_object_unref (encoder); -- 2.7.4