From e2f65711ee5cfdcc4a872c44acfe25bb9e1c16a0 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 31 Mar 2008 08:32:26 +0000 Subject: [PATCH] gst/gst.c: Fix type in log message and add one to ease seeing how long registry cache verification takes. Original commit message from CVS: * gst/gst.c: Fix type in log message and add one to ease seeing how long registry cache verification takes. * gst/gstregistry.c: Only test plugin filenames against G_MODULE_SUFFIX. --- ChangeLog | 9 +++++++++ gst/gst.c | 4 +++- gst/gstregistry.c | 5 +---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e72d3b3..92eac18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2008-03-31 Stefan Kost + * gst/gst.c: + Fix type in log message and add one to ease seeing how long registry + cache verification takes. + + * gst/gstregistry.c: + Only test plugin filenames against G_MODULE_SUFFIX. + +2008-03-31 Stefan Kost + * gst/gstdebugutils.c: Improve handling ghost/proxy pads. diff --git a/gst/gst.c b/gst/gst.c index 109e865..09630ff 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -656,6 +656,8 @@ scan_and_update_registry (GstRegistry * default_registry, gboolean changed = FALSE; GList *l; + GST_INFO ("Validating registry cache"); + /* scan paths specified via --gst-plugin-path */ GST_DEBUG ("scanning paths added via --gst-plugin-path"); for (l = plugin_paths; l != NULL; l = l->next) { @@ -723,7 +725,7 @@ scan_and_update_registry (GstRegistry * default_registry, } if (!write_changes) { - GST_INFO ("Registry cached changed, but writing is disabled. Not writing."); + GST_INFO ("Registry cache changed, but writing is disabled. Not writing."); return REGISTRY_SCAN_AND_UPDATE_FAILURE; } diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 553da6b..d48e98c 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -828,10 +828,7 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path, g_free (filename); continue; } - if (!g_str_has_suffix (filename, ".so") && - !g_str_has_suffix (filename, ".sl") && - !g_str_has_suffix (filename, ".dll") && - !g_str_has_suffix (filename, ".dynlib")) { + if (!g_str_has_suffix (filename, G_MODULE_SUFFIX)) { GST_LOG_OBJECT (registry, "extension is not recognized as module file, ignoring"); g_free (filename); -- 2.7.4