aboutsummaryrefslogtreecommitdiff
path: root/src/pulse-manager.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-09 18:13:58 +0000
committerConor Curran <conor.curran@canonical.com>2010-02-09 18:13:58 +0000
commit8046b1e98594e5be7a0c3392a0348577a18dce54 (patch)
tree136f0013863e20ed47a6f4ba68889906c49de6a1 /src/pulse-manager.c
parent1ae774f7367f91f40f94a845c525ddedf1ddbba5 (diff)
downloadayatana-indicator-sound-8046b1e98594e5be7a0c3392a0348577a18dce54.tar.gz
ayatana-indicator-sound-8046b1e98594e5be7a0c3392a0348577a18dce54.tar.bz2
ayatana-indicator-sound-8046b1e98594e5be7a0c3392a0348577a18dce54.zip
slider init'd with the correct value - geesh
Diffstat (limited to 'src/pulse-manager.c')
-rw-r--r--src/pulse-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse-manager.c b/src/pulse-manager.c
index 169c0df..e7570c6 100644
--- a/src/pulse-manager.c
+++ b/src/pulse-manager.c
@@ -187,14 +187,14 @@ For now this callback it assumes it only used at startup. It may be necessary to
static void pulse_sink_info_callback(pa_context *c, const pa_sink_info *sink, int eol, void *userdata)
{
if (eol > 0) {
- gboolean device_available;
- device_available = sink_available();
+ gboolean device_available = sink_available();
if(device_available == TRUE)
{
// Hopefully the PA server has set the default device if not default to 0
DEFAULT_SINK_INDEX = (DEFAULT_SINK_INDEX < 0) ? 0 : DEFAULT_SINK_INDEX;
test_hash();
update_pa_state(TRUE, device_available, default_sink_is_muted(), get_default_sink_volume());
+ sound_service_dbus_update_sink_volume(dbus_service, get_default_sink_volume());
g_debug("default sink index : %d", DEFAULT_SINK_INDEX);
}
else{