aboutsummaryrefslogtreecommitdiff
path: root/src/media-player-mpris.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/media-player-mpris.vala')
-rw-r--r--src/media-player-mpris.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/media-player-mpris.vala b/src/media-player-mpris.vala
index 408cdda..148a30a 100644
--- a/src/media-player-mpris.vala
+++ b/src/media-player-mpris.vala
@@ -226,7 +226,7 @@ public class MediaPlayerMpris: MediaPlayer {
if (this.play_when_attached) {
/* wait a little before calling PlayPause, some players need some time to
set themselves up */
- Timeout.add (1000, () => { proxy.PlayPause.begin (); return false; } );
+ Timeout.add (1000, () => { proxy.PlayPause.begin (); return Source.REMOVE; } );
this.play_when_attached = false;
}
}
@@ -269,7 +269,7 @@ public class MediaPlayerMpris: MediaPlayer {
return;
}
- Timeout.add (500, () => { this.fetch_playlists (); return false; } );
+ Timeout.add (500, () => { this.fetch_playlists (); return Source.REMOVE; } );
}
/* some players (e.g. Spotify) don't follow the spec closely and pass single strings in metadata fields