[gst-devel] Checking whether gstreamer has been initialized

David Schleef ds at schleef.org
Mon Sep 25 23:00:36 CEST 2006


On Mon, Sep 25, 2006 at 12:31:00AM -0400, Braden McDaniel wrote:
> On Sun, 2006-09-24 at 20:54 -0700, David Schleef wrote:
> > On Sun, Sep 24, 2006 at 06:38:30PM -0400, Braden McDaniel wrote:
> > > On Sun, 2006-09-24 at 10:36 -0700, David Schleef wrote:
> > > > Correct.  Pretty much only test suite programs should call
> > > > gst_deinit().
> > > 
> > > Or user applications.
> > 
> > No.  Read the manual.
> 
> The API reference only has this to say of gst_deinit:
> 
>         Clean up. Call only once, before exiting. After this call
>         GStreamer should not be used anymore.

You have an old version of the documentation.  The current version
(which was changed only a few weeks ago) says:

 * Clean up any resources created by GStreamer in gst_init().
 *
 * It is normally not needed to call this function in a normal application
 * as the resources will automatically be freed when the program terminates.
 * This function is therefore mostly used by testsuites and other memory
 * profiling tools.
 *
 * After this call GStreamer (including this method) should not be used anymore.



dave...

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




More information about the gstreamer-devel mailing list