diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-01-06 19:40:27 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-01-06 19:40:27 +0000 |
commit | 6e2db6374e349b8f923bca0f4a66d419ef2c76a6 (patch) | |
tree | 29febbc6ddd232b1b32e6c5eff7eac2b4de0c6da /gst/gstregistry.c | |
parent | cbdff26c106d2adb06dd149769f4955d8fbec1fc (diff) |
registry: ignore old libgstvalve.so and libgstselector.so plugins to minimize upgrade pain
Ignore plugins which have been moved into coreelements, so it's
still possible to just upgrade GStreamer core without having to
upgrade the whole stack.
Diffstat (limited to 'gst/gstregistry.c')
-rw-r--r-- | gst/gstregistry.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 80cb721362..27e41daf50 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -1161,6 +1161,17 @@ gst_registry_scan_path_level (GstRegistryScanContext * context, GST_LOG_OBJECT (context->registry, "file %s looks like a possible module", filename); + /* try to avoid unnecessary plugin-move pain */ + if (g_str_has_prefix (dirent, "libgstvalve") || + g_str_has_prefix (dirent, "libgstselector")) { + GST_WARNING_OBJECT (context->registry, "ignoring old plugin %s which " + "has been merged into the corelements plugin", filename); + /* Plugin will be removed from cache after the scan completes if it + * is still marked 'cached' */ + g_free (filename); + continue; + } + /* plug-ins are considered unique by basename; if the given name * was already seen by the registry, we ignore it */ plugin = gst_registry_lookup_bn (context->registry, dirent); |