summaryrefslogtreecommitdiffstats
path: root/ext/amrwb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/amrwb')
-rw-r--r--ext/amrwb/gstamrwbdec.c2
-rw-r--r--ext/amrwb/gstamrwbenc.c2
-rw-r--r--ext/amrwb/gstamrwbparse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/amrwb/gstamrwbdec.c b/ext/amrwb/gstamrwbdec.c
index cba2041d..1bab9f75 100644
--- a/ext/amrwb/gstamrwbdec.c
+++ b/ext/amrwb/gstamrwbdec.c
@@ -81,7 +81,7 @@ gst_amrwbdec_class_init (GstAmrwbDecClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
element_class->change_state = gst_amrwbdec_state_change;
}
diff --git a/ext/amrwb/gstamrwbenc.c b/ext/amrwb/gstamrwbenc.c
index 3ce373e6..ced5c13b 100644
--- a/ext/amrwb/gstamrwbenc.c
+++ b/ext/amrwb/gstamrwbenc.c
@@ -80,7 +80,7 @@ gst_amrwbenc_class_init (GstAmrwbEncClass * klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
object_class->finalize = gst_amrwbenc_finalize;
diff --git a/ext/amrwb/gstamrwbparse.c b/ext/amrwb/gstamrwbparse.c
index 69b6d207..1aa954be 100644
--- a/ext/amrwb/gstamrwbparse.c
+++ b/ext/amrwb/gstamrwbparse.c
@@ -90,7 +90,7 @@ gst_amrwbparse_class_init (GstAmrwbParseClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
element_class->change_state = gst_amrwbparse_state_change;