From: Tim-Philipp Müller Date: Wed, 15 Sep 2010 19:36:33 +0000 (+0100) Subject: videomixer2: pre-register pad class properly with g_type_class_ref X-Git-Tag: 1.19.3~509^2~8101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4451718effb171c7f1c4db9f632ce2e05f7db47a;p=platform%2Fupstream%2Fgstreamer.git videomixer2: pre-register pad class properly with g_type_class_ref 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. --- diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c index 647ae2c..16e5a35 100644 --- a/gst/videomixer/videomixer2.c +++ b/gst/videomixer/videomixer2.c @@ -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