summaryrefslogtreecommitdiff
path: root/src/Partition.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-11 19:32:32 +0100
committerMax Kellermann <max@duempel.org>2015-11-11 19:56:01 +0100
commit5e93c05095eff2385f02fa946fdb2e97353b1843 (patch)
treeaebf91037da46697f0db3e4a0cbf28de2d8f3e21 /src/Partition.hxx
parent0f4f04eaa4b697ef95411516a3c2145a394e0c64 (diff)
queue/Playlist: seek methods return bool/Error instead of PlaylistResult
Diffstat (limited to 'src/Partition.hxx')
-rw-r--r--src/Partition.hxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Partition.hxx b/src/Partition.hxx
index cd7b3c66e..7a57f741e 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -142,17 +142,19 @@ struct Partition final : private PlayerListener, private MixerListener {
return playlist.PlayPrevious(pc);
}
- PlaylistResult SeekSongPosition(unsigned song_position,
- SongTime seek_time) {
- return playlist.SeekSongPosition(pc, song_position, seek_time);
+ bool SeekSongPosition(unsigned song_position,
+ SongTime seek_time, Error &error) {
+ return playlist.SeekSongPosition(pc, song_position, seek_time,
+ error);
}
- PlaylistResult SeekSongId(unsigned song_id, SongTime seek_time) {
- return playlist.SeekSongId(pc, song_id, seek_time);
+ bool SeekSongId(unsigned song_id, SongTime seek_time, Error &error) {
+ return playlist.SeekSongId(pc, song_id, seek_time, error);
}
- PlaylistResult SeekCurrent(SignedSongTime seek_time, bool relative) {
- return playlist.SeekCurrent(pc, seek_time, relative);
+ bool SeekCurrent(SignedSongTime seek_time, bool relative,
+ Error &error) {
+ return playlist.SeekCurrent(pc, seek_time, relative, error);
}
void SetRepeat(bool new_value) {