[gst-devel] Checking whether gstreamer has been initialized

Stefan Kost ensonic at hora-obscura.de
Mon Sep 25 09:59:01 CEST 2006


Hi,

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

Stefan




More information about the gstreamer-devel mailing list