[gst-devel] changes to adder

Andy Wingo wingo at pobox.com
Mon Sep 9 11:52:08 CEST 2002

On Mon, 09 Sep 2002, Wim Taymans wrote:

> On Mon, 2002-09-09 at 16:55, Thomas Vander Stichele wrote:
> > Hi,
> > 
> > I've been asked to explain my commits to adder, so here's the simple 
> > explanation.
> > 
> > I think that adder should always send data, regardless of the fact if it 
> > has any input to it.  If it doesn't, it should send out zeroes, of course.
> > In my head, gst-launch adder ! osssrc should work, useless though it is in 
> > practical life.  Also, the same should work in gst-editor.
> I'm not sure what the point is of wasting CPU cycles on generating
> silence...

It's like a real mixer, no input, silent output.

> Why don't you just PAUSE the pipeline when nothing is connected to adder
> and restart it when input is available? You'll have to PAUSE the
> pipeline anyway when you connect something to adder, I mean, it's not
> that you can forget about it altogether.

Hm, true. Good point.

There has to be *some* reason to do this... maybe { adder } ! queue !
... where the adder could potentially have something connected to it. in
that case, the main thread could keep going for a littlebit while the
adder is paused and connected.

> just my 2 eurocent,

Thanks wim ;)


More information about the gstreamer-devel mailing list