aboutsummaryrefslogtreecommitdiff
path: root/src/player-controller.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/player-controller.vala')
-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);