--- gstreamer-sharp/glue/controlsource_orig.c	Sun May 31 09:58:00 2009
+++ gstreamer-sharp/glue/controlsource.c	Sat Nov 21 16:30:52 2009
@@ -13,10 +13,13 @@
 static GObjectClass *
 get_threshold_class (GObject *obj)
 {
-        GType gtype = G_TYPE_FROM_INSTANCE (obj);
+        GType gtype;
+        GObjectClass *klass;
+
+        gtype = G_TYPE_FROM_INSTANCE (obj);
         while (HAS_PREFIX (g_type_name (gtype)))
                 gtype = g_type_parent (gtype);
-        GObjectClass *klass = g_type_class_peek (gtype);
+        klass = g_type_class_peek (gtype);
         if (klass == NULL) klass = g_type_class_ref (gtype);
         return klass;
 }
