[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 05:16:06 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 rbultje at ronald.bitfreak.net.
--- shadow/113258 Fri May 30 09:08:29 2003
+++ shadow/113258.tmp.4781 Tue Jul 29 08:16:05 2003
@@ -45,6 +45,28 @@
any case, we should probably start using GST_CAPS_ANY and
GST_CAPS_NONE instead of NULL.
------- Additional Comments From in7y118 at public.uni-hamburg.de 2003-05-30 09:08 -------
Just want to voice support for Davids proposal.
+
+------- Additional Comments From rbultje at ronald.bitfreak.net 2003-07-29 08:16 -------
+So how will we define GST_CAPS_ANY? I could propose:
+
+#define GST_CAPS_NONE NULL
+#define GST_CAPS_ANY gst_caps_get_any()
+
+GstCaps *
+gst_caps_get_any (void)
+{
+ static GstCaps *caps = NULL;
+
+ if (!caps) {
+ caps = GST_CAPS_NEW ("gst_caps_any",
+ "*",
+ NULL);
+ }
+
+ return gst_caps_ref (caps);
+}
+
+That'd sound ok to me.
More information about the Gstreamer-bugs
mailing list