gst_plugin_load_file: force plugin reload if diff filename
authorRuben Gonzalez <rgonzalez@fluendo.com>
Fri, 12 Nov 2021 19:13:10 +0000 (20:13 +0100)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 19 Apr 2022 08:56:08 +0000 (14:26 +0530)
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>

subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-good/docs/gst_plugins_cache.json
subprojects/gstreamer/gst/gstplugin.c

index 245970f8ca56a5fee9e119e4fedd3e9e00bba3ae..8f56ef268eb76f0ca4b7840e7c2f79aeae57f2bb 100644 (file)
                         "construct": false,
                         "construct-only": false,
                         "controllable": false,
-                        "default": "true",
+                        "default": "false",
                         "mutable": "null",
                         "readable": true,
                         "type": "gboolean",
index b746807d004e4852dba02e94305d0d0aab374c60..52cc0fc30e5f7e31c7e3ff94e3f0d4dd2ffeddec 100644 (file)
                         "construct": false,
                         "construct-only": false,
                         "controllable": false,
-                        "default": "top (2)",
+                        "default": "baseline (0)",
                         "mutable": "null",
                         "readable": true,
                         "type": "GstBaseTextOverlayVAlign",
index 4552b0d37a81646878b56a522d7973fd439e0a91..012ebab944eebaaed7edb64b84e0d3dfb6124bbf 100644 (file)
                         "construct": false,
                         "construct-only": false,
                         "controllable": false,
-                        "default": "24",
+                        "default": "0",
                         "max": "2147483647",
                         "min": "-2147483648",
                         "mutable": "null",
                         "construct": false,
                         "construct-only": false,
                         "controllable": false,
-                        "default": "80",
+                        "default": "0",
                         "max": "2147483647",
                         "min": "-2147483648",
                         "mutable": "null",
index aa7d6d93a6e0aae8ae847475a8c4f772471a6129..09230bebe00eca61ebe3f0b5bf9417991142df4e 100644 (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;
     }