[gst-devel] gst_element_factory_make returning failure

Stefan Kost ensonic at hora-obscura.de
Wed Mar 4 20:55:00 CET 2009


Suman Kumar Sanjeev Prasanna schrieb:
> Dear Friends,
> 
> This is my first mail to this forum. I created a plugin and when i run through gst-launch it is working fine. however, when i tried it with a sample application, i am facing an problem while creating a pipeline.
> 
>  gst_element_factory_make ("senddata", "senddata");   is failing. few times it works without any problem, but it often returns failure.
> 
> i m doing socket operations within the plug-in. But, even if i restart the system and try, i am still getting the same problem. any suggestions to resolve this issue?
> 
> Thanks,
> Suman
> 
In case you create several instances of it, just use
  gst_element_factory_make ("senddata", NULL);
or
  gst_element_factory_make ("senddata", "unique name");

Besides that you need to debug you plugin. Add GST_DEBUG statements and so on
and try to pinpoint where the construction fails.

Stefan




More information about the gstreamer-devel mailing list