aboutsummaryrefslogtreecommitdiff
path: root/src/pulse-manager.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-12 15:25:38 +0000
committerConor Curran <conor.curran@canonical.com>2010-02-12 15:25:38 +0000
commitbc588fc03fdfc804a96f95f04c9f248932bfd885 (patch)
tree2cb94522daa136cc7fbdb0b6d035f9b15365487d /src/pulse-manager.c
parent37d67b056a9af5cc7778c69ec88d7b9021d30c98 (diff)
downloadayatana-indicator-sound-bc588fc03fdfc804a96f95f04c9f248932bfd885.tar.gz
ayatana-indicator-sound-bc588fc03fdfc804a96f95f04c9f248932bfd885.tar.bz2
ayatana-indicator-sound-bc588fc03fdfc804a96f95f04c9f248932bfd885.zip
more trace for default sink bug
Diffstat (limited to 'src/pulse-manager.c')
-rw-r--r--src/pulse-manager.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pulse-manager.c b/src/pulse-manager.c
index 82dbabf..e202c7d 100644
--- a/src/pulse-manager.c
+++ b/src/pulse-manager.c
@@ -101,13 +101,20 @@ Controllers & Utilities
static gboolean sink_available()
{
- if (g_hash_table_size(sink_hash) < 1)
+ if (g_hash_table_size(sink_hash) < 1){
+ g_debug("Sink_available returning false because sinks_hash is empty !!!");
return FALSE;
+ }
sink_info *s = g_hash_table_lookup(sink_hash, GINT_TO_POINTER(DEFAULT_SINK_INDEX));
// TODO more testing is required for the case of having no available sink
// This will need to iterate through the sinks to find an available
// one as opposed to just picking the first
- return ((g_strcasecmp(s->name, " auto_null ") != 0) && s->active_port == TRUE);
+
+ g_debug("About to test for to see if the available sink is null");
+ gboolean available = (g_strcasecmp(s->name, " auto_null ") != 0) && s->active_port == TRUE;
+ g_debug("sink_available (auto_null && !active_port) %i", available);
+
+ return available;
}
static gboolean default_sink_is_muted()