This way we do not hit the performance overhead of having the method
not inlined but still can use it from bindings.
*
* Returns: the new #GstCaps
*/
*
* Returns: the new #GstCaps
*/
-GstCaps *
-gst_caps_copy (const GstCaps * caps)
+GstCaps *(gst_caps_copy) (const GstCaps * caps)
{
return GST_CAPS (gst_mini_object_copy (GST_MINI_OBJECT_CAST (caps)));
}
{
return GST_CAPS (gst_mini_object_copy (GST_MINI_OBJECT_CAST (caps)));
}
GST_API
GstCaps * gst_caps_copy (const GstCaps * caps);
GST_API
GstCaps * gst_caps_copy (const GstCaps * caps);
+#define gst_caps_copy(caps) GST_CAPS (gst_mini_object_copy (GST_MINI_OBJECT_CAST (caps)))
+
/**
* gst_caps_is_writable:
* @caps: a #GstCaps
/**
* gst_caps_is_writable:
* @caps: a #GstCaps