From: Stefan Kost Date: Sat, 22 May 2010 19:44:02 +0000 (+0300) Subject: caps: use our macos more X-Git-Tag: RELEASE-0.10.30~164 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=999a6235c095a33f3f3c3fb131d033e5ef05d4c1;p=platform%2Fupstream%2Fgstreamer.git caps: use our macos more --- 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 */