aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-09-19 21:51:24 +0200
committerMax Kellermann <max@duempel.org>2014-09-19 21:51:24 +0200
commitdd1cec4196e74cce2025d2d781e8c2a30cb55147 (patch)
treeba779dfcc879030cb147fbacd5f3321435f5ff2e
parentd1a8a4481e81b9c3716e02af8fa245740acfe97b (diff)
downloadmpd-dd1cec4196e74cce2025d2d781e8c2a30cb55147.tar.gz
mpd-dd1cec4196e74cce2025d2d781e8c2a30cb55147.tar.xz
mpd-dd1cec4196e74cce2025d2d781e8c2a30cb55147.zip
decoder/sndfile: log detailed sf_open_virtual() error message
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/SndfileDecoderPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx
index 74567cc82..34b214339 100644
--- a/src/decoder/plugins/SndfileDecoderPlugin.cxx
+++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx
@@ -197,7 +197,8 @@ sndfile_stream_decode(Decoder &decoder, InputStream &is)
SndfileInputStream sis{&decoder, is};
SNDFILE *const sf = sf_open_virtual(&vio, SFM_READ, &info, &sis);
if (sf == nullptr) {
- LogWarning(sndfile_domain, "sf_open_virtual() failed");
+ FormatWarning(sndfile_domain, "sf_open_virtual() failed: %s",
+ sf_strerror(nullptr));
return;
}