mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
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:
parent
79303a6fa7
commit
0732e92957
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue