basevideo: Don't call g_type_class_peek_parent() in class_init
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Aug 2011 07:42:02 +0000 (07:42 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Aug 2011 08:15:20 +0000 (10:15 +0200)
This is already done by the GObject boilerplate macro

gst-libs/gst/video/gstbasevideodecoder.c
gst-libs/gst/video/gstbasevideoencoder.c

index 5392d44866e4831b40d41a83198e7f5f52bff499..0e08a884b2abe6eef11016d01a83daf22b50ac54 100644 (file)
@@ -196,8 +196,6 @@ gst_base_video_decoder_class_init (GstBaseVideoDecoderClass * klass)
 
   gstelement_class->change_state =
       GST_DEBUG_FUNCPTR (gst_base_video_decoder_change_state);
-
-  parent_class = g_type_class_peek_parent (klass);
 }
 
 static void
index 88d8c72dc830cae523a2d229ee2ec34530899685..c81dae7f9b5d4f45d12f8bc3b6346d324bcf2ca1 100644 (file)
@@ -169,8 +169,6 @@ gst_base_video_encoder_class_init (GstBaseVideoEncoderClass * klass)
 
   gstelement_class->change_state =
       GST_DEBUG_FUNCPTR (gst_base_video_encoder_change_state);
-
-  parent_class = g_type_class_peek_parent (klass);
 }
 
 static void