diff options
author | Max Kellermann <max@duempel.org> | 2014-07-11 21:11:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-11 21:18:44 +0200 |
commit | eb79d830517e9668fa31c5615083296ebdff04fe (patch) | |
tree | 0fbca784682b930a69e65647a7f4496b50216009 | |
parent | ca1a11493d5d5a8637530fa88b2a05794b92b456 (diff) | |
download | mpd-eb79d830517e9668fa31c5615083296ebdff04fe.tar.gz mpd-eb79d830517e9668fa31c5615083296ebdff04fe.tar.xz mpd-eb79d830517e9668fa31c5615083296ebdff04fe.zip |
decoder/sndfile: log seek errors
-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(); } |