diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2007-11-10 05:09:50 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-03-03 14:34:06 -0500 |
commit | d9511ab542cf3597a81f40668f62474befd91be1 (patch) | |
tree | 712a56dac9a2be4a5d4974431fff87435c278dc3 | |
parent | ce88d245c34cefc16e5414cc43b7dd6d1a0ab975 (diff) | |
download | gstreamer-plugins-bad-d9511ab542cf3597a81f40668f62474befd91be1.tar.gz |
[MOVED FROM GST-P-FARSIGHT] Use g_type_class_peek_parent instead of reffing the parent class directly
20071110050950-3e2dc-6d14ddd6ae3ceeeaa4e641b7b09613e442927f92.gz
-rw-r--r-- | ext/mimic/gstmimdec.c | 2 | ||||
-rw-r--r-- | ext/mimic/gstmimenc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c index f5d244cde..3568f9b15 100644 --- a/ext/mimic/gstmimdec.c +++ b/ext/mimic/gstmimdec.c @@ -134,7 +134,7 @@ gst_mimdec_class_init (GstMimDecClass *klass) gobject_class->finalize = gst_mimdec_finalize; - parent_class = g_type_class_ref (GST_TYPE_ELEMENT); + parent_class = g_type_class_peek_parent (klass); GST_DEBUG_CATEGORY_INIT (mimdec_debug, "mimdec", 0, "Mimic decoder plugin"); } diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index 376b916b8..1b1b9288d 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -147,7 +147,7 @@ gst_mimenc_class_init (GstMimEncClass *klass) gstelement_class = (GstElementClass*) klass; gstelement_class->change_state = gst_mimenc_change_state; - parent_class = g_type_class_ref (GST_TYPE_ELEMENT); + parent_class = g_type_class_peek_parent (klass); GST_DEBUG_CATEGORY_INIT (mimenc_debug, "mimenc", 0, "Mimic encoder plugin"); } |