From eb79d830517e9668fa31c5615083296ebdff04fe Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Jul 2014 21:11:33 +0200 Subject: [PATCH] decoder/sndfile: log seek errors --- src/decoder/SndfileDecoderPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); }