[gnome-media] Add more debug to the cards monitoring functions
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-media] Add more debug to the cards monitoring functions
- Date: Mon, 20 Jul 2009 12:25:25 +0000 (UTC)
commit b4fbd28ebd1616f65ec8f4582e5a35439e66acb9
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 20 13:24:58 2009 +0100
Add more debug to the cards monitoring functions
gnome-volume-control/src/gvc-mixer-control.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-mixer-control.c b/gnome-volume-control/src/gvc-mixer-control.c
index 28b80f7..450f74b 100644
--- a/gnome-volume-control/src/gvc-mixer-control.c
+++ b/gnome-volume-control/src/gvc-mixer-control.c
@@ -878,9 +878,22 @@ update_cards (GvcMixerControl *control,
const pa_card_info *info)
{
#if 1
+ guint i;
+
g_debug ("Updating card: index=%u name='%s'",
info->index,
info->name);
+
+ g_debug ("Adding card %s:", info->name);
+ for (i = 0; i < info->n_profiles; i++) {
+ struct pa_card_profile_info pi = info->profiles[i];
+ gboolean is_default;
+
+ is_default = (g_strcmp0 (pi.name, info->active_profile->name) == 0);
+ g_debug ("\tProfile '%s': %d sources %d sinks%s",
+ pi.name, pi.n_sources, pi.n_sinks,
+ is_default ? " (Current)" : "");
+ }
#endif
g_hash_table_insert (control->priv->cards,
GUINT_TO_POINTER (info->index),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]