Commit 7ada7def authored by Max Kellermann's avatar Max Kellermann

decoder/audiofile: fix crash after seeking

Log call was added to the wrong branch. Fixes regression by commit ca1a1149
parent 421c4ae9
ver 0.18.14 (not yet released) ver 0.18.14 (not yet released)
* protocol * protocol
- fix range parser bug on certain 32 bit architectures - fix range parser bug on certain 32 bit architectures
* decoder
- audiofile: fix crash after seeking
ver 0.18.13 (2014/08/31) ver 0.18.13 (2014/08/31)
* protocol * protocol
......
...@@ -110,9 +110,9 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset offset, int is_relative) ...@@ -110,9 +110,9 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset offset, int is_relative)
Error error; Error error;
if (is.LockSeek(offset, whence, error)) { if (is.LockSeek(offset, whence, error)) {
LogError(error, "Seek failed");
return is.GetOffset(); return is.GetOffset();
} else { } else {
LogError(error, "Seek failed");
return -1; return -1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment