Commit cc0171d5 authored by Stefan Kost's avatar Stefan Kost
Browse files

elementfactory: use the parent_class defined by G_DEFINE_TYPE

parent 56a6094b
......@@ -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);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment