From 36239895bd822d5fd3087218fbb10986430b8c9b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Nov 2015 16:50:57 +0100 Subject: player/Control: add Lock prefix to locking method names --- src/queue/Playlist.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/queue/Playlist.cxx') diff --git a/src/queue/Playlist.cxx b/src/queue/Playlist.cxx index 841684272..384a76a3b 100644 --- a/src/queue/Playlist.cxx +++ b/src/queue/Playlist.cxx @@ -57,7 +57,7 @@ playlist::QueueSongOrder(PlayerControl &pc, unsigned order) FormatDebug(playlist_domain, "queue song %i:\"%s\"", queued, song.GetURI()); - pc.EnqueueSong(new DetachedSong(song)); + pc.LockEnqueueSong(new DetachedSong(song)); } void @@ -140,7 +140,7 @@ playlist::UpdateQueuedSong(PlayerControl &pc, const DetachedSong *prev) if (prev != nullptr && next_song != prev) { /* clear the currently queued song */ - pc.Cancel(); + pc.LockCancel(); queued = -1; } @@ -235,7 +235,7 @@ playlist::SetRepeat(PlayerControl &pc, bool status) queue.repeat = status; - pc.SetBorderPause(queue.single && !queue.repeat); + pc.LockSetBorderPause(queue.single && !queue.repeat); /* if the last song is currently being played, the "next song" might change when repeat mode is toggled */ @@ -262,7 +262,7 @@ playlist::SetSingle(PlayerControl &pc, bool status) queue.single = status; - pc.SetBorderPause(queue.single && !queue.repeat); + pc.LockSetBorderPause(queue.single && !queue.repeat); /* if the last song is currently being played, the "next song" might change when single mode is toggled */ -- cgit v1.2.3