[gst-devel] gst_element_connect

Benjamin Otte in7y118 at public.uni-hamburg.de
Fri Apr 12 02:44:11 CEST 2002


On Wed, 10 Apr 2002, Andy Wingo wrote:

> On Wed, 10 Apr 2002, Thomas Vander Stichele wrote:
>
> > hi,
> >
> > gst_el_con seems to have changed to only take two arguments.  Judging from
> > the code, it seems that it tries to connect EVERY src pad from the first
> > to EVERY sink pad of the second.
> >
> > Is that the case ? Is that what is wanted ? I haven't glanced enough
> > through it, but it sounds very wrong ;)
>
> If it is in fact the case that it connects every src to every sink, yes
> that's quite wrong. It would need a quick fix then. I haven't had any
> problems yet though, so I think it's acting as one might expect (connect
> one pad from src to one pad from the sink). It's quite a useful
> function; also see gst_element_connect_many (), also a simplifier.

When I wrote that code, it tried to find one and only one connection.
The function documentation says "If multiple connections are
possible, only one is established." so it should still be true.

Benjamin





More information about the gstreamer-devel mailing list