[Gstreamer-bugs] [Bug 113258] Changed - gst_caps_intersect() returns NULL for empty intersection
bugzilla-daemon at widget.gnome.org
bugzilla-daemon at widget.gnome.org
Mon Aug 18 21:34:57 PDT 2003
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=113258
Changed by ds at schleef.org.
--- shadow/113258 Tue Jul 29 14:07:47 2003
+++ shadow/113258.tmp.19375 Tue Aug 19 00:34:57 2003
@@ -80,6 +80,26 @@
chain indicator as well.
I like the idea of making GST_CAPS_ANY a fixed number, since that
makes it easy to test, instead of needing a GST_CAPS_IS_ANY().
Alternatively, we could special-case gst_caps_copy() so that it won't
actually copy the ANY caps.
+
+------- Additional Comments From ds at schleef.org 2003-08-19 00:34 -------
+I'm starting with the migration. The first step is to define
+GST_CAPS_ANY and GST_CAPS_NONE (done) and identify as many places in
+gstreamer and gst-plugins where NULL needs to be converted to
+GST_CAPS_ANY. (working on it) (GST_CAPS_ANY is still defined as
+NULL.)
+
+After that is done, I'll add code to properly intersect caps with
+GST_CAPS_ANY, and add an assertion to make sure that pad caps are not
+set to GST_CAPS_NONE.
+
+I *think* that this can all be done so that one can flip a #define and
+get either the old behavior or new behavior. At least, I'm going to
+attempt to do it that way, to make debugging easier.
+
+One thing that hasn't been discussed: props may need similar
+treatment. However, it should only need to be internal. A caps
+with GST_PROPS_NONE would imply GST_CAPS_NONE, so it would only need
+to be used internally in the props intersection code.
More information about the Gstreamer-bugs
mailing list