gstreamer/gst-libs/gst/base
Nirbheek Chauhan cb53a6284f aggregator: Don't try to be too smart while allocating pad names
Previously, while allocating the pad number for a new pad, aggregator was
maintaining an interesting relationship between the pad count and the pad
number.

If you requested a sink pad called "sink_6", padcount (which is badly named and
actually means number-of-pads-minus-one) would be set to 6. Which means that if
you then requested a sink pad called "sink_0", it would be assigned the name
"sink_6" again, which fails the non-uniqueness test inside gstelement.c.

This can be fixed by instead setting padcount to be 7 in that case, but this
breaks manual management of pad names by the application since it then becomes
impossible to request a pad called "sink_2". Instead, we fix this by always
directly using the requested name as the sink pad name. Uniqueness of the pad
name is tested separately inside gstreamer core. If no name is requested, we use
the next available pad number.

Note that this is important since the sinkpad numbering in aggregator is not
meaningless. Videoaggregator uses it to decide the Z-order of video frames.
2016-03-28 13:46:00 +03:00
..
gstaggregator.c aggregator: Don't try to be too smart while allocating pad names 2016-03-28 13:46:00 +03:00
gstaggregator.h aggregator: Add create_new_pad() vfunc to allow subclasses to override the default behaviour 2015-10-23 16:31:47 +03:00
Makefile.am base/audio/video: Install headers and pkg-config files 2016-01-22 12:39:48 +02:00