diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-04 12:39:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-04 12:39:17 +0200 |
commit | 27b0ee204cad5364417b11d9b6cb3e1ee8c31309 (patch) | |
tree | 92ce14947024fd438ecf3f5cd75f5045295e4416 /ext/x264/gstx264enc.c | |
parent | 0bc0a31c961e19ef61f1c2918a73ba17e78379bf (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.c | 2 |
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); |