[gst-devel] Checking whether gstreamer has been initialized

Thomas Vander Stichele thomas at apestaart.org
Sat Sep 30 16:01:43 CEST 2006


On Wed, 2006-09-27 at 20:16 -0400, Braden McDaniel wrote:
> 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.

I am sure that a patch to implement your preferred philosophy would be
accepted, provided that it extends the current philosophy in such a way
that everything keeps working as is.

Thomas






More information about the gstreamer-devel mailing list