[gst-devel] changes to adder

Wim Taymans wim.taymans at chello.be
Mon Sep 9 11:41:05 CEST 2002

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

That said, since we don't have the distinction between source and filter
elements, you can easily implement this.

> The reason I think this should work is that there are apps that will use 
> adder, and connect and disconnect inputs to it as necessary.  Adder 
> shouldn't stop working when all inputs are gone, and shouldn't wait to 
> start working when none of it's inputs are connected.

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.

> I'm currently trying to get such a mixer app written, which is probably 
> the direct reason for me trying to fix up adder in some places.
> A prerequisite for that launch line to work is a way to set audio format 
> properties on the cmd line - I guess this is what Andy objects to, though 
> I'm not sure.

Using object properties is currently the only way to set data formats
with -launch, we need to implement a -launch syntax to implement
_connect_filtered with -launch (and the editor). 

just my 2 eurocent,


> Thomas
> -- 
> The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
> <-*-                      -*->
> Ik zei dat ik voor haar wou sterven
> en dat vond zij niet fijn
> Zij hield van dieren en van mensen
> die in leven wilden zijn
> <-*- thomas at apestaart.org -*->
> URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

More information about the gstreamer-devel mailing list