decoder/audiofile: fix crash after seeking

Log call was added to the wrong branch.

Fixes regression by commit ca1a1149
This commit is contained in:
Max Kellermann 2014-09-06 19:32:10 +02:00
parent 421c4ae907
commit 7ada7def9e
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.18.14 (not yet released)
* protocol
- fix range parser bug on certain 32 bit architectures
* decoder
- audiofile: fix crash after seeking
ver 0.18.13 (2014/08/31)
* protocol

View File

@ -110,9 +110,9 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset offset, int is_relative)
Error error;
if (is.LockSeek(offset, whence, error)) {
LogError(error, "Seek failed");
return is.GetOffset();
} else {
LogError(error, "Seek failed");
return -1;
}
}