From: Sjoerd Simons Date: Tue, 3 May 2011 13:57:16 +0000 (+0100) Subject: x264enc: get_caps function should return a copy of the caps X-Git-Tag: 1.19.3~505^2~818^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd5fc6ed8df339682744baf9b94aea0599140e4d;p=platform%2Fupstream%2Fgstreamer.git x264enc: get_caps function should return a copy of the caps --- diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 098b41f..59d1f4e 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -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)