[gst-devel] linking pads (was: wingo gstreamer: gstreamer/ gstreamer/gst/)

David Schleef ds at schleef.org
Thu Mar 11 12:09:01 CET 2004


On Thu, Mar 11, 2004 at 05:48:44PM +0100, Benjamin Otte wrote:
> Quoting David Schleef <ds at schleef.org>:
> 
> > gst_pad_can_link() is used in several places (internally) where it would
> > nice to have a fast function.  pad_can_link() currently isn't very fast,
> > since it calls pad->getcaps(), which it often recursive and expensive.
> > There were more important things to think about at the time, but I
> > realized it would be nice to have multiple layers of can_link(), each
> > being more expensive than the previous.  And (at least right now), they
> > should be called gst_pad_can_probably_link(), to indicate that the link
> > could still fail.
> > 
> It's fine for me if it just checks templates. But it should check at least 
> those.
> I don't think we need more levels then this and actually linking though. 
> Because everything else depends on the states of the elements you try to link 
> anyway. 

I meant for only one to be exported.  Additional functions would
only be used internally.



dave...





More information about the gstreamer-devel mailing list