videomixer2: pre-register pad class properly with g_type_class_ref
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 15 Sep 2010 19:36:33 +0000 (20:36 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 23 Sep 2010 20:22:45 +0000 (21:22 +0100)
Fix code to match the comment. Also, there's no need to register the
background enum type again, this is already done via install_property.

gst/videomixer/videomixer2.c

index 647ae2c..16e5a35 100644 (file)
@@ -1927,9 +1927,7 @@ gst_videomixer2_class_init (GstVideoMixer2Class * klass)
       GST_DEBUG_FUNCPTR (gst_videomixer2_change_state);
 
   /* Register the pad class */
-  (void) (GST_TYPE_VIDEO_MIXER2_PAD);
-  /* Register the background enum */
-  (void) (GST_TYPE_VIDEO_MIXER2_BACKGROUND);
+  g_type_class_ref (GST_TYPE_VIDEO_MIXER2_PAD);
 }
 
 static void