[gst-devel] Checking whether gstreamer has been initialized

Braden McDaniel braden at endoframe.com
Thu Sep 28 02:16:21 CEST 2006


On Mon, 2006-09-25 at 14:00 -0700, David Schleef wrote:
> 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.

Yes; the version I was looking at is the one included with the 0.10.4
release.

>   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.

I see. Not my preferred resource management philosophy; but oh well.
Thanks for clarifying this.

-- 
Braden McDaniel                           e-mail: <braden at endoframe.com>
<http://endoframe.com>                    Jabber: <braden at jabber.org>






More information about the gstreamer-devel mailing list