How to destruct a pipeline??

Xabier Rodriguez Calvar calvaris at igalia.com
Fri Oct 21 01:59:04 PDT 2011


O Xov, 20-10-2011 ás 23:02 -0200, Tiago Katcipis escribiu:
>         
>         I have used gst_deinit() to destroy the pipeline.
> 
> You should not call gst_deinit to destroy the pipeline, to destroy the
> pipeline call:
> 
> gst_element_set_state (pipeline, GST_STATE_NULL);
> 
> and then 
> 
> g_object_unref (pipeline);
>   
>         
>         and then initialised the gstreamer using gst_init() and later
>         constructed
>         the other pipeline.
> 
> No need to call gst_init more than once. 

And actually, you shouldn't call gst_deinit unless you are are not going
to use gstreamer anymore during that program execution.

Br.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111021/69dbdc23/attachment.pgp>


More information about the gstreamer-devel mailing list