gst/gstregistry.c: Only print one log message per non-plugin file.
authorTim-Philipp Müller <tim@centricular.net>
Sat, 3 May 2008 19:13:47 +0000 (19:13 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 3 May 2008 19:13:47 +0000 (19:13 +0000)
Original commit message from CVS:
* gst/gstregistry.c: (gst_registry_scan_path_level):
Only print one log message per non-plugin file.

ChangeLog
gst/gstregistry.c

index 035a57b..07a4820 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-05-03  Tim-Philipp Müller  <tim.muller at collabora co uk>
 
+       * gst/gstregistry.c: (gst_registry_scan_path_level):
+         Only print one log message per non-plugin file.
+
+2008-05-03  Tim-Philipp Müller  <tim.muller at collabora co uk>
+
        * gst/gstinfo.c: (gst_debug_log_default):
          Fix alignment of debug log columns on 64-bit.
 
index 470e74a..828ff76 100644 (file)
@@ -811,21 +811,19 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
   while ((dirent = g_dir_read_name (dir))) {
     filename = g_strjoin ("/", path, dirent, NULL);
 
-    GST_LOG_OBJECT (registry, "examining file: %s", filename);
-
     if (g_file_test (filename, G_FILE_TEST_IS_DIR)) {
       if (level > 0) {
-        GST_LOG_OBJECT (registry, "found directory, recursing");
+        GST_LOG_OBJECT (registry, "recursing into directory %s", filename);
         changed |= gst_registry_scan_path_level (registry, filename, level - 1);
       } else {
-        GST_LOG_OBJECT (registry,
-            "found directory, but recursion level is too deep");
+        GST_LOG_OBJECT (registry, "not recursing into directory %s, "
+            "recursion level too deep", filename);
       }
       g_free (filename);
       continue;
     }
     if (!g_file_test (filename, G_FILE_TEST_IS_REGULAR)) {
-      GST_LOG_OBJECT (registry, "not a regular file, ignoring");
+      GST_LOG_OBJECT (registry, "%s is not a regular file, ignoring", filename);
       g_free (filename);
       continue;
     }
@@ -834,12 +832,14 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
         && !g_str_has_suffix (dirent, GST_EXTRA_MODULE_SUFFIX)
 #endif
         ) {
-      GST_LOG_OBJECT (registry,
-          "extension is not recognized as module file, ignoring");
+      GST_LOG_OBJECT (registry, "extension is not recognized as module file, "
+          "ignoring file %s", filename);
       g_free (filename);
       continue;
     }
 
+    GST_LOG_OBJECT (registry, "file %s looks like a possible module", filename);
+
     /* plug-ins are considered unique by basename; if the given name
      * was already seen by the registry, we ignore it */
     plugin = gst_registry_lookup (registry, filename);