player/Control: Seek*() returns Error information

This commit is contained in:
Max Kellermann
2015-11-11 17:31:32 +01:00
parent faca8bc02a
commit 4404f20cf4
3 changed files with 18 additions and 11 deletions

View File

@@ -425,7 +425,7 @@ private:
SynchronousCommand(PlayerCommand::QUEUE);
}
void SeekLocked(DetachedSong *song, SongTime t);
bool SeekLocked(DetachedSong *song, SongTime t, Error &error_r);
public:
/**
@@ -442,7 +442,7 @@ public:
* @return true on success, false on failure (e.g. if MPD isn't
* playing currently)
*/
bool LockSeek(DetachedSong *song, SongTime t);
bool LockSeek(DetachedSong *song, SongTime t, Error &error_r);
void SetCrossFade(float cross_fade_seconds);