Commit 0bd25f1e authored by Max Kellermann's avatar Max Kellermann

decoder/sidplay: log detailed error message

parent a4cd7411
......@@ -4,6 +4,7 @@ ver 0.19.18 (not yet released)
- ffmpeg: log detailed error message
- ffmpeg: support FFmpeg 3.1
- sidplay: detect libsidplay2 with pkg-config
- sidplay: log detailed error message
* output
- shout: recognize setting "encoder" instead of "encoding"
* require gcc 4.7 or newer
......
......@@ -154,7 +154,8 @@ sidplay_file_decode(Decoder &decoder, Path path_fs)
const auto container = ParseContainerPath(path_fs);
SidTuneMod tune(container.path.c_str());
if (!tune.getStatus()) {
LogWarning(sidplay_domain, "failed to load file");
FormatWarning(sidplay_domain, "failed to load file: %s",
tune.getInfo().statusString);
return;
}
......@@ -180,13 +181,15 @@ sidplay_file_decode(Decoder &decoder, Path path_fs)
ReSIDBuilder builder("ReSID");
builder.create(player.info().maxsids);
if (!builder) {
LogWarning(sidplay_domain, "ReSIDBuilder.create() failed");
FormatWarning(sidplay_domain, "ReSIDBuilder.create() failed: %s",
builder.error());
return;
}
builder.filter(filter_setting);
if (!builder) {
LogWarning(sidplay_domain, "ReSIDBuilder.filter() failed");
FormatWarning(sidplay_domain, "ReSIDBuilder.filter() failed: %s",
builder.error());
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