caps: use our macos more
authorStefan Kost <ensonic@users.sf.net>
Sat, 22 May 2010 19:44:02 +0000 (22:44 +0300)
committerStefan Kost <ensonic@users.sf.net>
Sat, 22 May 2010 19:44:02 +0000 (22:44 +0300)
gst/gstcaps.c

index c82c6be..fd212fe 100644 (file)
@@ -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 */