summaryrefslogtreecommitdiff
path: root/ext/x264/gstx264enc.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-04 12:39:17 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-04 12:39:17 +0200
commit27b0ee204cad5364417b11d9b6cb3e1ee8c31309 (patch)
tree92ce14947024fd438ecf3f5cd75f5045295e4416 /ext/x264/gstx264enc.c
parent0bc0a31c961e19ef61f1c2918a73ba17e78379bf (diff)
x264enc: Copy the template caps, it's not allowed to increase the refcount of const caps
Diffstat (limited to 'ext/x264/gstx264enc.c')
-rw-r--r--ext/x264/gstx264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index ff3a34f9..66e76479 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);