diff options
author | Max Kellermann <max@duempel.org> | 2015-11-11 19:32:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-11 19:56:01 +0100 |
commit | 5e93c05095eff2385f02fa946fdb2e97353b1843 (patch) | |
tree | aebf91037da46697f0db3e4a0cbf28de2d8f3e21 /src/queue/Playlist.hxx | |
parent | 0f4f04eaa4b697ef95411516a3c2145a394e0c64 (diff) | |
download | mpd-5e93c05095eff2385f02fa946fdb2e97353b1843.tar.gz mpd-5e93c05095eff2385f02fa946fdb2e97353b1843.tar.xz mpd-5e93c05095eff2385f02fa946fdb2e97353b1843.zip |
queue/Playlist: seek methods return bool/Error instead of PlaylistResult
Diffstat (limited to '')
-rw-r--r-- | src/queue/Playlist.hxx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx index a185a79c8..fb78e9373 100644 --- a/src/queue/Playlist.hxx +++ b/src/queue/Playlist.hxx @@ -280,16 +280,19 @@ public: void PlayPrevious(PlayerControl &pc); - PlaylistResult SeekSongOrder(PlayerControl &pc, - unsigned song_order, - SongTime seek_time); + bool SeekSongOrder(PlayerControl &pc, + unsigned song_order, + SongTime seek_time, + Error &error); - PlaylistResult SeekSongPosition(PlayerControl &pc, - unsigned song_position, - SongTime seek_time); + bool SeekSongPosition(PlayerControl &pc, + unsigned sonag_position, + SongTime seek_time, + Error &error); - PlaylistResult SeekSongId(PlayerControl &pc, - unsigned song_id, SongTime seek_time); + bool SeekSongId(PlayerControl &pc, + unsigned song_id, SongTime seek_time, + Error &error); /** * Seek within the current song. Fails if MPD is not currently @@ -299,8 +302,9 @@ public: * @param relative if true, then the specified time is relative to the * current position */ - PlaylistResult SeekCurrent(PlayerControl &pc, - SignedSongTime seek_time, bool relative); + bool SeekCurrent(PlayerControl &pc, + SignedSongTime seek_time, bool relative, + Error &error); bool GetRepeat() const { return queue.repeat; |