Commit 86fddd83 authored by David I. Lehn's avatar David I. Lehn
Browse files

use plugin feature api vs gstobject api

Original commit message from CVS:
use plugin feature api vs gstobject api
parent bc965132
......@@ -195,7 +195,7 @@ gst_element_factory_create (GstElementFactory *factory,
GST_DEBUG (GST_CAT_ELEMENT_FACTORY,
"creating element from factory \"%s\" (name \"%s\", type %d)",
GST_OBJECT_NAME (factory), name, (gint) factory->type);
GST_PLUGIN_FEATURE_NAME (factory), name, (gint) factory->type);
if (factory->type == 0) {
g_critical ("Factory for `%s' has no type",
......@@ -210,7 +210,7 @@ gst_element_factory_create (GstElementFactory *factory,
/* attempt to set the elemenfactory class pointer if necessary */
oclass = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
if (oclass->elementfactory == NULL) {
GST_DEBUG (GST_CAT_ELEMENT_FACTORY, "class %s", GST_OBJECT_NAME (factory));
GST_DEBUG (GST_CAT_ELEMENT_FACTORY, "class %s", GST_PLUGIN_FEATURE_NAME (factory));
oclass->elementfactory = factory;
/* copy pad template pointers to the element class,
......
......@@ -41,11 +41,11 @@ int main(int argc,char *argv[]) {
factorynode = xmlNewChild (doc->xmlRootNode, NULL, "element", NULL);
xmlNewChild (factorynode, NULL, "name",
GST_PLUGIN_FEATURE_NAME(GST_PLUGIN_FEATURE(factory)));
GST_PLUGIN_FEATURE_NAME(factory));
element = gst_element_factory_create(factory,NULL);
GST_DEBUG(GST_CAT_PLUGIN_LOADING, "adding factory %s",
gst_object_get_name (GST_OBJECT (factory)));
GST_PLUGIN_FEATURE_NAME(factory));
if (element == NULL) {
fprintf(stderr,"couldn't construct element from factory %s\n",
gst_object_get_name (GST_OBJECT (factory)));
......
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