[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
Tue Jul 29 11:07:47 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 08:16:05 2003
+++ shadow/113258.tmp.16770	Tue Jul 29 14:07:47 2003
@@ -67,6 +67,19 @@
   }
 
   return gst_caps_ref (caps);
 }
 
 That'd sound ok to me.
+
+------- Additional Comments From ds at schleef.org  2003-07-29 14:07 -------
+My first thought was to use ((void *)1) and ((void *)2) for ANY and
+NONE, but that causes problems testing for NULL.  I don't know why
+anyone would need to test for NULL, though.
+
+GST_CAPS_NONE probably should be NULL.  It can be used as the end of
+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.




More information about the Gstreamer-bugs mailing list