[gst-devel] Checking whether gstreamer has been initialized

Michal Benes michal.benes at itonis.tv
Mon Sep 25 10:26:15 CEST 2006


Stefan Kost wrote v Po 25. 09. 2006 v 10:59 +0300:
> 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.
> >
> > A text search of the Application Development Manual yielded no mention
> > of gst_deinit. While that absence certainly lends weight to what you're
> > saying, it does not add clarity.
> >
> > So could you elaborate?
> >
> >   
> When exiting a user application all ressources are cpurged anyway. This
> is only there to aid unit-test and tools that what resource usage.
> Applications should just exit().

Still, there are people who want to check for memory leaks in the entire
application. I think, it is a good habit to free all resources before
exiting.

	Michal





More information about the gstreamer-devel mailing list