fix stupidity bug in gstelement.c (which only crashes other computers :)
authorBenjamin Otte <otte@gnome.org>
Sun, 2 Nov 2003 14:58:05 +0000 (14:58 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 2 Nov 2003 14:58:05 +0000 (14:58 +0000)
Original commit message from CVS:
fix stupidity bug in gstelement.c (which only crashes other computers :)

gst/gstelement.c

index 5c5263a..d76f4cb 100644 (file)
@@ -152,10 +152,7 @@ gst_element_class_init (GstElementClass *klass)
 static void
 gst_element_base_class_init (gpointer g_class)
 {
-  GstElementClass *klass = GST_ELEMENT_CLASS (klass);
-  GObjectClass *gobject_class;
-
-  gobject_class = (GObjectClass*) klass;
+  GObjectClass *gobject_class = G_OBJECT_CLASS (g_class);
 
   gobject_class->set_property =                GST_DEBUG_FUNCPTR(gst_element_real_set_property);
   gobject_class->get_property =                GST_DEBUG_FUNCPTR(gst_element_real_get_property);