gst_element_factory_make returning failure

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_element_factory_make returning failure

Suman Kumar Sanjeev Prasanna
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

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make returning failure

michael smith-6-3
On Tue, Mar 3, 2009 at 3:05 AM, Suman Kumar Sanjeev Prasanna
<[hidden email]> wrote:
> 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.

GStreamer doesn't come with an element called "senddata". So, I assume
this is a private element of yours - if it's failing, I guess that's a
problem in your code.

If you can describe a problem with gstreamer that doesn't require us
to have your private code, we can probably help in more detail.

Mike

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make returning failure

Stefan Sauer
In reply to this post by Suman Kumar Sanjeev Prasanna
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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make returning failure

Suman Kumar Sanjeev Prasanna
Dear Stefan,

Thank you. i will try them. i think the plug-in is not getting de-initalized properly.
________________________________________
From: Stefan Kost [[hidden email]]
Sent: Thursday, March 05, 2009 1:25 AM
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] gst_element_factory_make returning failure

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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel