summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-11-20 19:15:10 +0100
committerBenjamin Otte <otte@gnome.org>2009-11-20 19:15:10 +0100
commite33b7d68fdc182f52940732d272f145965bd1235 (patch)
tree4cd5e45a0918e401ac5457949df9eee90decd6d7
parent763e322180f0c4870c0eb53f6e8c2427406d1949 (diff)
Make the g_once_init_enter() madness not emit gcc warnings
-rw-r--r--gst-libs/gst/cairo/gstcairocaps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst-libs/gst/cairo/gstcairocaps.c b/gst-libs/gst/cairo/gstcairocaps.c
index ba3ef82..caaf92c 100644
--- a/gst-libs/gst/cairo/gstcairocaps.c
+++ b/gst-libs/gst/cairo/gstcairocaps.c
@@ -64,14 +64,14 @@
GstCaps *
gst_cairo_caps_any (void)
{
- static GstCaps *any = NULL;
+ static gsize any = 0;
- if (g_once_init_enter ((gsize *) & any)) {
+ if (g_once_init_enter (&any)) {
GstCaps *caps = gst_caps_from_string (GST_CAIRO_CAPS_ANY);
- g_once_init_leave ((gsize *) & any, GPOINTER_TO_SIZE (caps));
+ g_once_init_leave (&any, GPOINTER_TO_SIZE (caps));
}
- return gst_caps_copy (any);
+ return gst_caps_copy (GSIZE_TO_POINTER (any));
}
/**