[0.11] gstreamer: pad: add 2 new caps methods

Sebastian Dröge sebastian.droege at collabora.co.uk
Fri May 6 10:16:08 PDT 2011


On Fri, 2011-05-06 at 10:12 -0700, Wim Taymans wrote:

> +GstCaps *
> +gst_pad_get_current_caps (GstPad * pad)
> +{
> +  GstCaps *result;
> +
> +  g_return_val_if_fail (GST_IS_PAD (pad), NULL);
> +
> +  GST_OBJECT_LOCK (pad);
> +  GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "get current pad caps");
> +  if ((result = get_pad_caps (pad)))
> +    gst_caps_ref (result);
> +  GST_OBJECT_UNLOCK (pad);
> +
> +  return result;
> +}

Isn't this the same as gst_pad_get_negotiated_caps()?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110506/abd29597/attachment.pgp>


More information about the gstreamer-devel mailing list