to map the caps to the extension. See #566661.
GstTypeFindFactory *factory;
g_return_val_if_fail (name != NULL, FALSE);
- g_return_val_if_fail (func != NULL, FALSE);
GST_INFO ("registering typefind function for %s", name);
GST_TYPE_FIND_FACTORY (gst_plugin_feature_load (GST_PLUGIN_FEATURE
(factory)));
if (new_factory) {
- g_assert (new_factory->function != NULL);
-
- new_factory->function (find, new_factory->user_data);
+ if (new_factory->function)
+ new_factory->function (find, new_factory->user_data);
gst_object_unref (new_factory);
}
}