player/Thread: don't restart unseekable song after failed seek attempt

The check IsSeekableCurrentSong() was added by commit
44b200240f in version 0.20.19, but it
caused a regression: by doing the branch only if the current song is
seekable, the player would restart the current song if it was not
seekable, and later the initial seek would fail; but we already know
it's not seekable, and so we should fail early.
This commit is contained in:
Max Kellermann
2019-08-03 12:30:10 +02:00
parent 9661062ae2
commit f2d8fd769d
3 changed files with 20 additions and 0 deletions

2
NEWS
View File

@@ -6,6 +6,8 @@ ver 0.21.12 (not yet released)
- opus, vorbis: decode the "end of stream" packet
* output
- jack: fix mono-to-stereo conversion
* player
- don't restart unseekable song after failed seek attempt
* Windows
- support backslash in relative URIs loaded from playlists