decoder_api: cancel initial seek when song is not seekable

Fixes assertion failure.
This commit is contained in:
Max Kellermann 2011-11-27 19:19:43 +01:00
parent 6452461c39
commit ef40e362c9
2 changed files with 8 additions and 0 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.16.6 (2010/??/??)
* decoder:
- fix assertion failure when resuming streams
* event_pipe: fix WIN32 regression
* define WINVER in ./configure
* WIN32: autodetect filesystem encoding

View File

@ -95,6 +95,12 @@ decoder_prepare_initial_seek(struct decoder *decoder)
return true;
if (decoder->initial_seek_pending) {
if (!dc->seekable) {
/* seeking is not possible */
decoder->initial_seek_pending = false;
return false;
}
if (dc->command == DECODE_COMMAND_NONE) {
/* begin initial seek */