Checking if a resource exists in gstreamer

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

Checking if a resource exists in gstreamer

xargon-2
Hello,

Currently, if the pipeline is passed a URI resource that does not
exist or is unavailable, then gstreamer has a hard exit.

Is there a gstreamer way to check for the availability opf the
resource or maybe change this behaviour to not abort.

Cheers,
Luca

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Checking if a resource exists in gstreamer

sledge hammer
As far as I know, the gstelement that handles the URI should emit a message on the bus. You should have code that catches handles GST_MESSAGE_ERROR that is posted on the bus. There you should shutdown the pipeline and inform the user.

If this doesn't happen and gstreamer just crashes all together, then I don't know...


> Date: Tue, 15 Dec 2009 13:02:01 +0000
> From: [hidden email]
> To: [hidden email]
> Subject: [gst-devel] Checking if a resource exists in gstreamer
>
> Hello,
>
> Currently, if the pipeline is passed a URI resource that does not
> exist or is unavailable, then gstreamer has a hard exit.
>
> Is there a gstreamer way to check for the availability opf the
> resource or maybe change this behaviour to not abort.
>
> Cheers,
> Luca
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


Νέα Windows 7: Βρείτε τον κατάλληλο υπολογιστή για εσάς. Μάθετε περισσότερα.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Checking if a resource exists in gstreamer

Tim-Philipp Müller-2
In reply to this post by xargon-2
On Tue, 2009-12-15 at 13:02 +0000, Luca Pamparana wrote:

Hi,

> Currently, if the pipeline is passed a URI resource that does not
> exist or is unavailable, then gstreamer has a hard exit.
>
> Is there a gstreamer way to check for the availability of the
> resource or maybe change this behaviour to not abort.

GStreamer should not abort in this case. You did not provide any details
of what you are doing exactly or how GStreamer did a 'hard exit', but
GStreamer crashing or aborting usually indicates either a bug in
GStreamer or in your application. If you think it's a bug in GStreamer
you should file a bug in bugzilla with more details so we can fix it.

Cheers
 -Tim




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel