Pad Selection

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Jun 8 15:03:37 PDT 2012


On Thu, 2012-06-07 at 14:52 +0100, Neil Jones wrote:

> I have an element with 2 input pads, pad 0 is an alway pad and pad1 is
> a sometimes pad.
> 
> When I construct a test pipeline with gst-launch that only requires 1
> of the input pads to the element, g-streamer always tries pad1 first,
> I would have expected g-streamer to have started at pad 0 ?

Guess it depends a bit on how the pad templates are stored internally
when registered / restored from registry, and how the utility functions
that do the linking iterate over those pads. One shouldn't really assume
any particular order.

You can specify the pad to link to in gst-launch via e.g.
myelement.sink_00 or myelement.sink_%02d  (depending on what the
template names actually are).

Cheers
 -Tim



More information about the gstreamer-devel mailing list