registry: Set typefind factory caps to NULL instead of empty caps if they originally were NULL

This commit is contained in:
Sebastian Dröge 2009-02-25 14:19:08 +01:00
parent 6f0da920ef
commit 70fcf4a201

View 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) {