decoder/sndfile: log detailed sf_open_virtual() error message
This commit is contained in:
parent
d1a8a4481e
commit
dd1cec4196
|
@ -197,7 +197,8 @@ sndfile_stream_decode(Decoder &decoder, InputStream &is)
|
||||||
SndfileInputStream sis{&decoder, is};
|
SndfileInputStream sis{&decoder, is};
|
||||||
SNDFILE *const sf = sf_open_virtual(&vio, SFM_READ, &info, &sis);
|
SNDFILE *const sf = sf_open_virtual(&vio, SFM_READ, &info, &sis);
|
||||||
if (sf == nullptr) {
|
if (sf == nullptr) {
|
||||||
LogWarning(sndfile_domain, "sf_open_virtual() failed");
|
FormatWarning(sndfile_domain, "sf_open_virtual() failed: %s",
|
||||||
|
sf_strerror(nullptr));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue