added more INFO lines to elementfactory_make to make debugging missing plugins easier

Original commit message from CVS:
added more INFO lines to elementfactory_make to make debugging missing plugins easier
This commit is contained in:
Erik Walthinsen 2001-08-21 19:30:45 +00:00
parent 79303a6fa7
commit 0732e92957

View file

@ -202,8 +202,15 @@ gst_elementfactory_make (const gchar *factoryname, const gchar *name)
//gst_plugin_load_elementfactory(factoryname);
factory = gst_elementfactory_find(factoryname);
if (factory == NULL) return NULL;
if (factory == NULL) {
GST_INFO (GST_CAT_ELEMENTFACTORY,"no such elementfactory \"%s\"!",factoryname);
return NULL;
}
element = gst_elementfactory_create(factory,name);
if (element == NULL) {
GST_INFO (GST_CAT_ELEMENTFACTORY,"couldn't create instance of elementfactory \"%s\"!",factoryname);
return NULL;
}
return element;
}