mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gst/gstregistry.c: Only print one log message per non-plugin file.
Original commit message from CVS: * gst/gstregistry.c: (gst_registry_scan_path_level): Only print one log message per non-plugin file.
This commit is contained in:
parent
31c5f8a6ce
commit
31e43e26f0
2 changed files with 13 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
|||
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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue