summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-09-06 14:33:44 +0300
committerStefan Kost <ensonic@users.sf.net>2010-09-06 14:35:26 +0300
commitcc0171d5cd58ae7b5e90caf133eebe21d1bb08bc (patch)
treeee134e89f31acb40bda800b63083ad1e3871033c
parent56a6094b7587b80f790e589aad110596b8573990 (diff)
elementfactory: use the parent_class defined by G_DEFINE_TYPE
-rw-r--r--gst/gstelementfactory.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c
index 14ca75490..bef3f1b68 100644
--- a/gst/gstelementfactory.c
+++ b/gst/gstelementfactory.c
@@ -73,8 +73,6 @@ GST_DEBUG_CATEGORY_STATIC (element_factory_debug);
static void gst_element_factory_finalize (GObject * object);
static void gst_element_factory_cleanup (GstElementFactory * factory);
-static GstPluginFeatureClass *parent_class = NULL;
-
/* static guint gst_element_factory_signals[LAST_SIGNAL] = { 0 }; */
/* this is defined in gstelement.c */
@@ -95,8 +93,6 @@ gst_element_factory_class_init (GstElementFactoryClass * klass)
{
GObjectClass *gobject_class = (GObjectClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_element_factory_finalize;
}
@@ -118,7 +114,7 @@ gst_element_factory_finalize (GObject * object)
GstElementFactory *factory = GST_ELEMENT_FACTORY (object);
gst_element_factory_cleanup (factory);
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (gst_element_factory_parent_class)->finalize (object);
}
/**