mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 20:20:38 +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);
|
||||
|
||||
/* we are the only instance reffing this caps */
|
||||
if (g_atomic_int_get (&caps->refcount) == 1)
|
||||
if (IS_WRITABLE (caps))
|
||||
return caps;
|
||||
|
||||
/* else copy */
|
||||
|
|
Loading…
Reference in a new issue