diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-20 10:09:43 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-20 10:09:43 +0200 |
commit | bd9052c00a0088b04f177ccdb38c0844d1bcfd07 (patch) | |
tree | 3d5c1e757b8d5e6b43968dd6da43a9d617511fd2 | |
parent | 6863c0b13b2542a40f4804c3bc3bf54ee8ece9f2 (diff) |
Don't use declarations after statements in C code
-rw-r--r-- | gstreamer-sharp/glue/controlsource.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gstreamer-sharp/glue/controlsource.c b/gstreamer-sharp/glue/controlsource.c index 173a09e..b7359a7 100644 --- a/gstreamer-sharp/glue/controlsource.c +++ b/gstreamer-sharp/glue/controlsource.c @@ -13,10 +13,12 @@ const gchar *__gtype_prefix = "__gtksharp_"; static GObjectClass * get_threshold_class (GObject *obj) { + GObjectClass *klass; GType 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; } |