[gst-devel] Reusing pipelines after EOS

Andy Wingo wingo at pobox.com
Fri Sep 20 17:18:03 CEST 2002

On Sat, 21 Sep 2002, Wim Taymans wrote:

> On Sat, 2002-09-21 at 03:00, iain wrote:
> > I've got a pipeline that I want to reuse after an EOS is hit.
> > The problem is that it has a float2int in it, and on EOS the float2int
> > destroys the data (like GstByteStreams) associated with each src pad. 
> > 
> > Is this the correct behaviour, or should I be able to play a pipeline,
> > wait for EOS, seek back to the start, and replay the pipeline?
> You should be able to seek back, put the pipeline back to playing and
> it should work. Going to READY and then back to PLAYING should have the
> same effect as doing a seek to 0.
> The plugin is expected to recreate the bytestream when going to PLAYING
> of course, I don't know if that is the case.

No, the plugin is too lame to do that ;)

I'd see about fixing this if I weren't rebuilding gst-all, which can
take a while on my machine. A patch to handle the state change properly
would be nice.

I have the feeling that a lot of gst plugins need this sort of
state-change awareness testing.


More information about the gstreamer-devel mailing list