diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index ff3a34f988..66e764797e 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);