androidmedia: Set parent class in class_init

This commit is contained in:
Sebastian Dröge 2013-04-16 16:17:50 +02:00
parent 7832b9b43f
commit 055154fe78
2 changed files with 4 additions and 0 deletions

View file

@ -333,6 +333,8 @@ gst_amc_audio_dec_class_init (GstAmcAudioDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_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; gobject_class->finalize = gst_amc_audio_dec_finalize;
element_class->change_state = element_class->change_state =

View file

@ -466,6 +466,8 @@ gst_amc_video_dec_class_init (GstAmcVideoDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstVideoDecoderClass *videodec_class = GST_VIDEO_DECODER_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; gobject_class->finalize = gst_amc_video_dec_finalize;
element_class->change_state = element_class->change_state =