registry: Set typefind factory caps to NULL instead of empty caps if they originally...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 25 Feb 2009 13:19:08 +0000 (14:19 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 25 Feb 2009 13:19:54 +0000 (14:19 +0100)
gst/gstregistrybinary.c

index 698c2f7..09c450a 100644 (file)
@@ -958,7 +958,7 @@ gst_registry_binary_load_feature (GstRegistry * registry, gchar ** in,
 
     /* load caps */
     unpack_string (*in, str);
-    factory->caps = gst_caps_from_string (str);
+    factory->caps = (g_str_equal (str, "")) ? NULL : gst_caps_from_string (str);
     g_free (str);
     /* load extensions */
     if (tff->nextensions) {