mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
caps: Add a macro based variant of gst_caps_copy
This way we do not hit the performance overhead of having the method not inlined but still can use it from bindings.
This commit is contained in:
parent
11e0f451eb
commit
b27ee943c2
|
@ -2556,8 +2556,7 @@ gst_caps_filter_and_map_in_place (GstCaps * caps, GstCapsFilterMapFunc func,
|
||||||
*
|
*
|
||||||
* Returns: the new #GstCaps
|
* Returns: the new #GstCaps
|
||||||
*/
|
*/
|
||||||
GstCaps *
|
GstCaps *(gst_caps_copy) (const GstCaps * caps)
|
||||||
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)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,6 +227,8 @@ gst_caps_unref (GstCaps * caps)
|
||||||
GST_API
|
GST_API
|
||||||
GstCaps * gst_caps_copy (const GstCaps * caps);
|
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:
|
* gst_caps_is_writable:
|
||||||
* @caps: a #GstCaps
|
* @caps: a #GstCaps
|
||||||
|
|
Loading…
Reference in a new issue