summaryrefslogtreecommitdiff
path: root/ext/x264/gstx264enc.c
diff options
context:
space:
mode:
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);