summaryrefslogtreecommitdiff
path: root/src/player
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-04-25 21:19:26 +0200
committerMax Kellermann <max@musicpd.org>2018-04-25 21:19:26 +0200
commit44b200240f1f4b8394dd2e58fec72da3d3ec448f (patch)
tree9b6fa63444f54930f2b5e5c51abd16d899ba501a /src/player
parenta2340c313f49d45abf3ade4645264e45c54918c7 (diff)
player/Thread: never reuse decoder when switching radio streams
When switching to another song manually, the player checks if the decoder is already decoding that song; if so, it will attempt to reuse it by seeking it to the new position. That however fails if the decoder is not seekable (e.g. a radio stream) which leaves the user unable to switch to that song with the bogus error message "Not seekable".
Diffstat (limited to 'src/player')
-rw-r--r--src/player/Thread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 58883307d..651117088 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -584,7 +584,7 @@ Player::SeekDecoder()
const SongTime start_time = pc.next_song->GetStartTime();
- if (!dc.LockIsCurrentSong(*pc.next_song)) {
+ if (!dc.LockIsSeeakbleCurrentSong(*pc.next_song)) {
/* the decoder is already decoding the "next" song -
stop it and start the previous song again */