[gstreamer-bugs] [Bug 618853] add caps intersection iterators
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon May 24 07:32:10 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=618853
GStreamer | gstreamer (core) | unspecified
--- Comment #26 from Stefan Kost (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> 2010-05-24 14:32:08 UTC ---
Created an attachment (id=161869)
View: https://bugzilla.gnome.org/attachment.cgi?id=161869
Review: https://bugzilla.gnome.org/review?bug=618853&attachment=161869
avoid using gst_caps_get_size() in gst_pad_fixate_caps
Just truncate and then fixate if something is left. Avoids fully evaluating
lazy
caps.
Remaining offender is gst_base_transform_transform_caps(). Need to implement a
lazy caps iterator here too.
One more question - would it be okay to change the semantics of
gst_caps_get_structure() the return NULL for index>length. Its is doing that
right now via:
g_return_val_if_fail (index < caps->structs->len, NULL);
which I'd like to turn into
if (index >= caps->structs->len)
return NULL;
That'd allow to write:
ix = 0;
while ( s = gst_caps_get_structure(caps, ix)) {
...
ix++;
}
--
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