]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugins-ugly0-10.git/commitdiff
x264enc: Copy the template caps, it's not allowed to increase the refcount of const...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 4 May 2011 10:39:17 +0000 (12:39 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 4 May 2011 10:39:17 +0000 (12:39 +0200)
ext/x264/gstx264enc.c

index ff3a34f98818270408308a978a90af720f57e134..66e764797e94ba824cd4b2065d742e8c4d065b26 100644 (file)
@@ -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);