x264enc: Copy the template caps, it's not allowed to increase the refcount of const caps

This commit is contained in:
Sebastian Dröge 2011-05-04 12:39:17 +02:00
parent 0bc0a31c96
commit 27b0ee204c

View 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);