summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-11-19 19:55:33 +0100
committerEric Anholt <eric@anholt.net>2009-11-20 11:22:48 +0100
commit763e322180f0c4870c0eb53f6e8c2427406d1949 (patch)
tree340162382f477de29324085ba03d53241b44e37d
parent2826b039b32454ffbd59d2307f522bc566daedc3 (diff)
Fix gst_cairo_caps_any's run-once variable storage setup.
Simple gst pipelines were segfaulting due to uninitialized variable issues.
-rw-r--r--gst-libs/gst/cairo/gstcairocaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/cairo/gstcairocaps.c b/gst-libs/gst/cairo/gstcairocaps.c
index 433e2ca..ba3ef82 100644
--- a/gst-libs/gst/cairo/gstcairocaps.c
+++ b/gst-libs/gst/cairo/gstcairocaps.c
@@ -64,7 +64,7 @@
GstCaps *
gst_cairo_caps_any (void)
{
- GstCaps *any = NULL;
+ static GstCaps *any = NULL;
if (g_once_init_enter ((gsize *) & any)) {
GstCaps *caps = gst_caps_from_string (GST_CAIRO_CAPS_ANY);