aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-11 21:11:33 +0200
committerMax Kellermann <max@duempel.org>2014-07-11 21:18:44 +0200
commiteb79d830517e9668fa31c5615083296ebdff04fe (patch)
tree0fbca784682b930a69e65647a7f4496b50216009
parentca1a11493d5d5a8637530fa88b2a05794b92b456 (diff)
downloadmpd-eb79d830517e9668fa31c5615083296ebdff04fe.tar.gz
mpd-eb79d830517e9668fa31c5615083296ebdff04fe.tar.xz
mpd-eb79d830517e9668fa31c5615083296ebdff04fe.zip
decoder/sndfile: log seek errors
-rw-r--r--src/decoder/SndfileDecoderPlugin.cxx5
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();
}