caps: Fix gst_static_caps_get(GST_STATIC_CAPS_NONE)
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 25 Mar 2013 08:19:24 +0000 (09:19 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 25 Mar 2013 08:22:49 +0000 (09:22 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=696435

gst/gstcaps.c

index b17c929..3a64a0d 100644 (file)
@@ -1807,7 +1807,7 @@ gst_caps_from_string_inplace (GstCaps * caps, const gchar * string)
     GST_CAPS_FLAGS (caps) = GST_CAPS_FLAG_ANY;
     return TRUE;
   }
-  if (strcmp ("EMPTY", string) == 0) {
+  if (strcmp ("EMPTY", string) == 0 || strcmp ("NONE", string) == 0) {
     return TRUE;
   }