diff options
author | Max Kellermann <max@duempel.org> | 2015-11-11 17:31:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-11 19:56:09 +0100 |
commit | 4404f20cf47e8c9c7f850955a9838d4b353f41fd (patch) | |
tree | f7101d67e826fa6cbf59e0cb6af5e3c10a13a497 /src/queue | |
parent | faca8bc02a67ed06e60a4d827d5d7bb69027b4f3 (diff) | |
download | mpd-4404f20cf47e8c9c7f850955a9838d4b353f41fd.tar.gz mpd-4404f20cf47e8c9c7f850955a9838d4b353f41fd.tar.xz mpd-4404f20cf47e8c9c7f850955a9838d4b353f41fd.zip |
player/Control: Seek*() returns Error information
Diffstat (limited to 'src/queue')
-rw-r--r-- | src/queue/PlaylistControl.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/queue/PlaylistControl.cxx b/src/queue/PlaylistControl.cxx index f7b2b16a3..7ed19fbfb 100644 --- a/src/queue/PlaylistControl.cxx +++ b/src/queue/PlaylistControl.cxx @@ -211,12 +211,8 @@ playlist::SeekSongOrder(PlayerControl &pc, unsigned i, SongTime seek_time, queued_song = nullptr; } - if (!pc.LockSeek(new DetachedSong(queue.GetOrder(i)), seek_time)) { + if (!pc.LockSeek(new DetachedSong(queue.GetOrder(i)), seek_time, error)) { UpdateQueuedSong(pc, queued_song); - - // TODO: fix error code - error.Set(playlist_domain, int(PlaylistResult::NOT_PLAYING), - "Decoder failed to seek"); return false; } |