decoder/sndfile: log seek errors

This commit is contained in:
Max Kellermann 2014-07-11 21:11:33 +02:00
parent ca1a11493d
commit eb79d83051
1 changed files with 4 additions and 1 deletions

View File

@ -44,8 +44,11 @@ sndfile_vio_seek(sf_count_t offset, int whence, void *user_data)
{
InputStream &is = *(InputStream *)user_data;
if (!is.LockSeek(offset, whence, IgnoreError()))
Error error;
if (!is.LockSeek(offset, whence, error)) {
LogError(error, "Seek failed");
return -1;
}
return is.GetOffset();
}