Login  Register

Pad Selection

classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Pad Selection

Neil Jones
17 posts
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 ?

Cheers

Neil
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Pad Selection

Tim-Philipp Müller-2
1762 posts
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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel