Reseting Elements into GstElementFactory.make state?

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Aug 1 07:01:59 PDT 2013


On Wed, 2013-07-31 at 19:20 +0100, Peter Rennert wrote:

Hi,

> I have a dynamic pipeline where I have two bins doing double buffering 
> (see below). It works if I use fresh bins with all elements factory 
> made. Once I swap them back and try to recycle a bin it does not work 
> anymore. I tried to set the bins into STATE_NULL but it does not really 
> reinitializes them. Is there any way?
> 
> I am using Gstreamer 1.1.1.1

Setting it to NULL should be enough. However, in practice you will find
that re-using elements is not the most-tested codepath, so you may run
into interesting bugs here and there if you do that. Those should all be
fixed of course.

Cheers
 -Tim



More information about the gstreamer-devel mailing list