Commit dd1cec41 authored by Max Kellermann's avatar Max Kellermann

decoder/sndfile: log detailed sf_open_virtual() error message

parent d1a8a448
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment