androidmedia: Set parent class in class_init
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 16 Apr 2013 14:17:50 +0000 (16:17 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 16 Apr 2013 14:17:50 +0000 (16:17 +0200)
sys/androidmedia/gstamcaudiodec.c
sys/androidmedia/gstamcvideodec.c

index b4be56d801d3a7834fa36b9a7bd1dadf947bf6e7..ccb0ee431c2618ab848ce22b9cd49c8f5445b5e1 100644 (file)
@@ -333,6 +333,8 @@ gst_amc_audio_dec_class_init (GstAmcAudioDecClass * klass)
   GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
   GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass);
 
+  parent_class = g_type_class_peek_parent (klass);
+
   gobject_class->finalize = gst_amc_audio_dec_finalize;
 
   element_class->change_state =
index 5fa278ba66fc3e8e9ac2211243314961b87a0bad..250f951cf0de24382b92cf5bac2b1be615787277 100644 (file)
@@ -466,6 +466,8 @@ gst_amc_video_dec_class_init (GstAmcVideoDecClass * klass)
   GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
   GstVideoDecoderClass *videodec_class = GST_VIDEO_DECODER_CLASS (klass);
 
+  parent_class = g_type_class_peek_parent (klass);
+
   gobject_class->finalize = gst_amc_video_dec_finalize;
 
   element_class->change_state =