mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 05:20:05 +01:00
lib: debug loading of config files + endpoint priorities
This commit is contained in:
parent
7abf74942d
commit
e10b0f871d
2 changed files with 7 additions and 2 deletions
|
|
@ -214,6 +214,9 @@ wp_configuration_reload (WpConfiguration *self, const char *extension)
|
|||
/* Only parse files that have the proper extension */
|
||||
if (g_str_has_suffix (file_name, ext)) {
|
||||
location = g_build_filename (path, file_name, NULL);
|
||||
|
||||
g_debug ("loading config file: %s", location);
|
||||
|
||||
if (!wp_config_parser_add_file (parser, location))
|
||||
g_warning ("Failed to parse file '%s'", location);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,8 +52,10 @@ select_new_default_ep (struct module_data * data, WpDefaultEndpointType type,
|
|||
|
||||
def_id = wp_session_get_default_endpoint (WP_SESSION (data->session), type);
|
||||
if (def_id != best_id) {
|
||||
g_debug ("selecting default endpoint for type %x, old:%u, new:%u",
|
||||
type, def_id, best_id);
|
||||
g_autofree gchar *type_str =
|
||||
g_enum_to_string (WP_TYPE_DEFAULT_ENDPOINT_TYPE, type);
|
||||
g_debug ("selecting default endpoint for %s, old:%u, new:%u (priority %u)",
|
||||
type_str, def_id, best_id, max_priority);
|
||||
wp_session_set_default_endpoint (WP_SESSION (data->session), type, best_id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue