diff options
-rw-r--r-- | src/decoder/SndfileDecoderPlugin.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/decoder/SndfileDecoderPlugin.cxx b/src/decoder/SndfileDecoderPlugin.cxx index 77b132962..4082f3e0f 100644 --- a/src/decoder/SndfileDecoderPlugin.cxx +++ b/src/decoder/SndfileDecoderPlugin.cxx @@ -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(); } |