summaryrefslogtreecommitdiff
path: root/gstreamer-sharp/glue/controlsource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gstreamer-sharp/glue/controlsource.c')
-rw-r--r--gstreamer-sharp/glue/controlsource.c4
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;
}