From 999a6235c095a33f3f3c3fb131d033e5ef05d4c1 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sat, 22 May 2010 22:44:02 +0300 Subject: [PATCH] caps: use our macos more --- gst/gstcaps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index c82c6be..fd212fe 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -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 */ -- 2.7.4