[gst-devel] Checking whether gstreamer has been initialized

David Schleef ds at schleef.org
Sat Sep 23 01:46:53 CEST 2006


On Fri, Sep 22, 2006 at 04:47:21PM -0400, Braden McDaniel wrote:
> I have a library in which I will be embedding GStreamer (via a local 
> plug-in). It looks like I will have to push the responsibility of 
> calling gst_init onto my library's users; after all they may want to use 
> GStreamer in other ways in their applications.
> 
> If the user has neglected to call gst_init, I would like to be able to 
> provide feedback indicating the problem. So is there any way I can check 
> to see if gst_init has been called?

I recommend having a yourlibrary_init() that calls gst_init().
gst_init() can be called multiple times with no side-effects.  You
might lose handling of --gst command line options, but that's
probably a good thing.



dave...

-- 
David Schleef
Big Kitten LLC (http://www.bigkitten.com/) -- data acquisition on Linux




More information about the gstreamer-devel mailing list