[gstreamer-bugs] [Bug 617045] [caps] New method for intersecting caps while retaining order

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Apr 28 01:04:59 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=617045
  GStreamer | gstreamer (core) | git

Benjamin Otte (Company) <otte> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |otte at gnome.org

--- Comment #5 from Benjamin Otte (Company) <otte at gnome.org> 2010-04-28 08:04:42 UTC ---
I dislike the name because it implies that gst_caps_intersect() does not sort
the caps. 

I'm also wondering if it would make sense to instead:

- Change gst_caps_intersect() to sort like your gst_caps_intersect_sorted()
Would that change the current API too much?

- Have a gst_caps_reorder (GstCaps *caps, GstCaps *order) function that does
sort caps according to a specific order.
I'm asking because there's a lot of places where elements would be happy if
there was an easy way to reorder caps. Examples are getcaps()ing on filters
that want to prefer passthrough or my hw-accelerated converters that want to
prefer hw-accelerated formats.
So I think having something like gst_caps_reorder (caps, gst_caps_from_string
("favorite/format; *")); would be very useful.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list