aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/PlaylistControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-11 17:31:32 +0100
committerMax Kellermann <max@duempel.org>2015-11-11 19:56:09 +0100
commit4404f20cf47e8c9c7f850955a9838d4b353f41fd (patch)
treef7101d67e826fa6cbf59e0cb6af5e3c10a13a497 /src/queue/PlaylistControl.cxx
parentfaca8bc02a67ed06e60a4d827d5d7bb69027b4f3 (diff)
downloadmpd-4404f20cf47e8c9c7f850955a9838d4b353f41fd.tar.gz
mpd-4404f20cf47e8c9c7f850955a9838d4b353f41fd.tar.xz
mpd-4404f20cf47e8c9c7f850955a9838d4b353f41fd.zip
player/Control: Seek*() returns Error information
Diffstat (limited to 'src/queue/PlaylistControl.cxx')
-rw-r--r--src/queue/PlaylistControl.cxx6
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;
}