use plugin feature api vs gstobject api

Original commit message from CVS:
use plugin feature api vs gstobject api
This commit is contained in:
David I. Lehn 2002-11-01 22:05:28 +00:00
parent bc965132c8
commit 86fddd8349
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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)));