[gnome-control-center] sound: Add more debug
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: Add more debug
- Date: Wed, 11 Jul 2012 15:21:52 +0000 (UTC)
commit 3201240eeecb935d7eab985230d6104e6a5188a9
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jul 11 15:28:44 2012 +0100
sound: Add more debug
panels/sound/gvc-mixer-control.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/panels/sound/gvc-mixer-control.c b/panels/sound/gvc-mixer-control.c
index a6e27e5..d3a30ca 100644
--- a/panels/sound/gvc-mixer-control.c
+++ b/panels/sound/gvc-mixer-control.c
@@ -200,6 +200,7 @@ gvc_mixer_control_set_default_sink (GvcMixerControl *control,
g_return_val_if_fail (GVC_IS_MIXER_CONTROL (control), FALSE);
g_return_val_if_fail (GVC_IS_MIXER_STREAM (stream), FALSE);
+ g_debug ("about to set default sink on server");
o = pa_context_set_default_sink (control->priv->pa_context,
gvc_mixer_stream_get_name (stream),
NULL,
@@ -709,6 +710,7 @@ update_server (GvcMixerControl *control,
update_default_source_from_name (control, info->default_source_name);
}
if (info->default_sink_name != NULL) {
+ g_debug ("update server");
update_default_sink_from_name (control, info->default_sink_name);
}
}
@@ -1385,7 +1387,7 @@ _pa_context_get_server_info_cb (pa_context *context,
g_warning ("Server info callback failure");
return;
}
-
+ g_debug ("get server info");
update_server (control, i);
dec_outstanding (control);
}
@@ -1729,9 +1731,8 @@ remove_sink_input (GvcMixerControl *control,
{
GvcMixerStream *stream;
-#if 0
g_debug ("Removing sink input: index=%u", index);
-#endif
+
stream = g_hash_table_lookup (control->priv->sink_inputs,
GUINT_TO_POINTER (index));
if (stream == NULL) {
@@ -1749,9 +1750,7 @@ remove_source_output (GvcMixerControl *control,
{
GvcMixerStream *stream;
-#if 0
g_debug ("Removing source output: index=%u", index);
-#endif
stream = g_hash_table_lookup (control->priv->source_outputs,
GUINT_TO_POINTER (index));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]