gst/gst.c: Fix type in log message and add one to ease seeing how long registry cache...
authorStefan Kost <ensonic@users.sourceforge.net>
Mon, 31 Mar 2008 08:32:26 +0000 (08:32 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Mon, 31 Mar 2008 08:32:26 +0000 (08:32 +0000)
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
gst/gst.c
gst/gstregistry.c

index e72d3b3..92eac18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2008-03-31  Stefan Kost  <ensonic@users.sf.net>
 
+       * 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  <ensonic@users.sf.net>
+
        * gst/gstdebugutils.c:
          Improve handling ghost/proxy pads.
 
index 109e865..09630ff 100644 (file)
--- 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;
   }
 
index 553da6b..d48e98c 100644 (file)
@@ -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);