gst_plugin_load_file: force plugin reload if diff filename

If a file includes a new version of a plugin that exits in the
registry, the output of gst-inspect is incorrect. The output has the
correct version but incorrect filename, and element description.

This seems to have also fixed some documentation issues.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1344>
This commit is contained in:
Ruben Gonzalez 2021-11-12 20:13:10 +01:00 committed by Nirbheek Chauhan
parent 819d436ec4
commit 70579285a8
4 changed files with 5 additions and 5 deletions

View file

@ -212590,7 +212590,7 @@
"construct": false,
"construct-only": false,
"controllable": false,
"default": "true",
"default": "false",
"mutable": "null",
"readable": true,
"type": "gboolean",

View file

@ -8579,7 +8579,7 @@
"construct": false,
"construct-only": false,
"controllable": false,
"default": "top (2)",
"default": "baseline (0)",
"mutable": "null",
"readable": true,
"type": "GstBaseTextOverlayVAlign",

View file

@ -371,7 +371,7 @@
"construct": false,
"construct-only": false,
"controllable": false,
"default": "24",
"default": "0",
"max": "2147483647",
"min": "-2147483648",
"mutable": "null",
@ -411,7 +411,7 @@
"construct": false,
"construct-only": false,
"controllable": false,
"default": "80",
"default": "0",
"max": "2147483647",
"min": "-2147483648",
"mutable": "null",

View file

@ -819,7 +819,7 @@ _priv_gst_plugin_load_file_for_registry (const gchar * filename,
/* already loaded */
g_mutex_unlock (&gst_plugin_loading_mutex);
return plugin;
} else {
} else if (g_strcmp0 (plugin->filename, filename) == 0) {
/* load plugin and update fields */
new_plugin = FALSE;
}