mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
Allow adding a typefinder without a typefind function so that it can be used
to map the caps to the extension. See #566661.
This commit is contained in:
parent
1c7ab4ed4f
commit
809372066a
2 changed files with 2 additions and 4 deletions
|
@ -78,7 +78,6 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
|
||||||
GstTypeFindFactory *factory;
|
GstTypeFindFactory *factory;
|
||||||
|
|
||||||
g_return_val_if_fail (name != NULL, FALSE);
|
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_INFO ("registering typefind function for %s", name);
|
||||||
|
|
||||||
|
|
|
@ -238,9 +238,8 @@ gst_type_find_factory_call_function (GstTypeFindFactory * factory,
|
||||||
GST_TYPE_FIND_FACTORY (gst_plugin_feature_load (GST_PLUGIN_FEATURE
|
GST_TYPE_FIND_FACTORY (gst_plugin_feature_load (GST_PLUGIN_FEATURE
|
||||||
(factory)));
|
(factory)));
|
||||||
if (new_factory) {
|
if (new_factory) {
|
||||||
g_assert (new_factory->function != NULL);
|
if (new_factory->function)
|
||||||
|
new_factory->function (find, new_factory->user_data);
|
||||||
new_factory->function (find, new_factory->user_data);
|
|
||||||
gst_object_unref (new_factory);
|
gst_object_unref (new_factory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue