directsoundsink: Don't unnecessarily get the parent class in class_init
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 26 Mar 2013 13:35:38 +0000 (14:35 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 26 Mar 2013 13:40:16 +0000 (14:40 +0100)
The trampoline generated by G_DEFINE_TYPE does that already.

sys/directsound/gstdirectsoundsink.c

index 3d21f37..88573a4 100644 (file)
@@ -155,8 +155,6 @@ gst_directsound_sink_class_init (GstDirectSoundSinkClass * klass)
   GST_DEBUG_CATEGORY_INIT (directsoundsink_debug, "directsoundsink", 0,
       "DirectSound sink");
 
-  parent_class = g_type_class_peek_parent (klass);
-
   gobject_class->finalize = gst_directsound_sink_finalize;
   gobject_class->set_property = gst_directsound_sink_set_property;
   gobject_class->get_property = gst_directsound_sink_get_property;