mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +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>
|
2008-05-03 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||||
|
|
||||||
* gst/gstinfo.c: (gst_debug_log_default):
|
* 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))) {
|
while ((dirent = g_dir_read_name (dir))) {
|
||||||
filename = g_strjoin ("/", path, dirent, NULL);
|
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 (g_file_test (filename, G_FILE_TEST_IS_DIR)) {
|
||||||
if (level > 0) {
|
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);
|
changed |= gst_registry_scan_path_level (registry, filename, level - 1);
|
||||||
} else {
|
} else {
|
||||||
GST_LOG_OBJECT (registry,
|
GST_LOG_OBJECT (registry, "not recursing into directory %s, "
|
||||||
"found directory, but recursion level is too deep");
|
"recursion level too deep", filename);
|
||||||
}
|
}
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!g_file_test (filename, G_FILE_TEST_IS_REGULAR)) {
|
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);
|
g_free (filename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -834,12 +832,14 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
|
||||||
&& !g_str_has_suffix (dirent, GST_EXTRA_MODULE_SUFFIX)
|
&& !g_str_has_suffix (dirent, GST_EXTRA_MODULE_SUFFIX)
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
GST_LOG_OBJECT (registry,
|
GST_LOG_OBJECT (registry, "extension is not recognized as module file, "
|
||||||
"extension is not recognized as module file, ignoring");
|
"ignoring file %s", filename);
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (registry, "file %s looks like a possible module", filename);
|
||||||
|
|
||||||
/* plug-ins are considered unique by basename; if the given name
|
/* plug-ins are considered unique by basename; if the given name
|
||||||
* was already seen by the registry, we ignore it */
|
* was already seen by the registry, we ignore it */
|
||||||
plugin = gst_registry_lookup (registry, filename);
|
plugin = gst_registry_lookup (registry, filename);
|
||||||
|
|
Loading…
Reference in a new issue