[gstreamer-bugs] [Bug 530737] New: [GstBaseTransform] does not preserve caps order in _getcaps function
bugzilla-daemon at bugzilla.gnome.org
Wed Apr 30 07:33:37 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
GStreamer | gstreamer (core) | Ver: HEAD CVS
Summary: [GstBaseTransform] does not preserve caps order in
Version: HEAD CVS
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: julien at moutte.net
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
When being asked the caps for a pad basetransform will obtain the peer caps,
filter them against corresponding template, transform them, filter them again
with the corresponding template.
This last filtering operation is not preserving caps order in a reliable way.
So say you have peer caps supporting only YUY2, once filtered it's still YUY2,
transform gets YUY2 first plus everything we can transform to, when filtering
against template it's pure lottery YUY2 can stay first but can go also go last.
A potential way to fix this problem would be to introduce a caps intersection
function which preserves the order of the first caps and we could use that
function when filtering against templates so that template order is considered
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=530737.
More information about the Gstreamer-bugs