[gst-devel] Checking whether gstreamer has been initialized

David Schleef ds at schleef.org
Sun Sep 24 19:36:24 CEST 2006


On Fri, Sep 22, 2006 at 09:33:00PM -0400, Braden McDaniel wrote:
> On Fri, 2006-09-22 at 16:46 -0700, David Schleef wrote:
> > 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.
> 
> I thought about that. However, the problem then becomes knowing whether
> it's appropriate for my library to call gst_deinit. I shouldn't call it
> if the user may be using gstreamer elsewhere after shutting down my
> library. (Right?)

Correct.  Pretty much only test suite programs should call
gst_deinit().



dave...

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




More information about the gstreamer-devel mailing list