diff --git a/sys/androidmedia/gstamcaudiodec.c b/sys/androidmedia/gstamcaudiodec.c index b4be56d801..ccb0ee431c 100644 --- a/sys/androidmedia/gstamcaudiodec.c +++ b/sys/androidmedia/gstamcaudiodec.c @@ -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 = diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 5fa278ba66..250f951cf0 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -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 =