aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-12-16 16:22:51 +0000
committerConor Curran <conor.curran@canonical.com>2010-12-16 16:22:51 +0000
commitce99ec3832eaca2d078dc6fb5a1bf3225cd87b7b (patch)
tree0a82326c25db1f2534616fa14905c71287db0221 /src
parent3f7014afbcae2bb141b358ebf0b3cf036b08aa56 (diff)
downloadayatana-indicator-sound-ce99ec3832eaca2d078dc6fb5a1bf3225cd87b7b.tar.gz
ayatana-indicator-sound-ce99ec3832eaca2d078dc6fb5a1bf3225cd87b7b.tar.bz2
ayatana-indicator-sound-ce99ec3832eaca2d078dc6fb5a1bf3225cd87b7b.zip
startup bug fixed
Diffstat (limited to 'src')
-rw-r--r--src/player-controller.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala
index b5c2d76..97f5303 100644
--- a/src/player-controller.vala
+++ b/src/player-controller.vala
@@ -29,7 +29,7 @@ public class PlayerController : GLib.Object
SEPARATOR,
TITLE,
METADATA,
- TRANSPORT,
+ TRANSPORT
}
public enum state{
@@ -104,7 +104,7 @@ public class PlayerController : GLib.Object
private void establish_mpris_connection()
{
- if(this.current_state != state.READY && this.dbus_name != null ){
+ if(this.current_state != state.READY || this.dbus_name == null ){
debug("establish_mpris_connection - Not ready to connect");
return;
}
@@ -179,7 +179,7 @@ public class PlayerController : GLib.Object
return result;
}
- public void determine_state()
+ private void determine_state()
{
if(this.mpris_bridge.connected() == true){
this.update_state(state.CONNECTED);