mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 02:46:33 +00:00
caps: use our macos more
This commit is contained in:
parent
29231bb963
commit
999a6235c0
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ gst_caps_make_writable (GstCaps * caps)
|
||||||
g_return_val_if_fail (caps != NULL, NULL);
|
g_return_val_if_fail (caps != NULL, NULL);
|
||||||
|
|
||||||
/* we are the only instance reffing this caps */
|
/* we are the only instance reffing this caps */
|
||||||
if (g_atomic_int_get (&caps->refcount) == 1)
|
if (IS_WRITABLE (caps))
|
||||||
return caps;
|
return caps;
|
||||||
|
|
||||||
/* else copy */
|
/* else copy */
|
||||||
|
|
Loading…
Reference in a new issue