x264enc: get_caps function should return a copy of the caps

This commit is contained in:
Sjoerd Simons 2011-05-03 14:57:16 +01:00
parent 6f91a5f84e
commit cd5fc6ed8d

View file

@ -1466,7 +1466,7 @@ gst_x264_enc_sink_get_caps (GstPad * pad)
/* If we already have caps return them */
if (GST_PAD_CAPS (pad))
return GST_PAD_CAPS (pad);
return gst_caps_copy (GST_PAD_CAPS (pad));
encoder = GST_X264_ENC (gst_pad_get_parent (pad));
if (!encoder)