From 4404f20cf47e8c9c7f850955a9838d4b353f41fd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Nov 2015 17:31:32 +0100 Subject: player/Control: Seek*() returns Error information --- src/queue/PlaylistControl.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/queue') 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; } -- cgit v1.2.3