diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/DsfDecoderPlugin.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/DsfDecoderPlugin.cxx b/src/decoder/DsfDecoderPlugin.cxx index e487879cb..26ba0e2d6 100644 --- a/src/decoder/DsfDecoderPlugin.cxx +++ b/src/decoder/DsfDecoderPlugin.cxx @@ -32,6 +32,7 @@ #include "DecoderAPI.hxx" #include "CheckAudioFormat.hxx" #include "util/bit_reverse.h" +#include "util/Error.hxx" #include "DsdLib.hxx" #include "TagHandler.hxx" @@ -284,13 +285,12 @@ dsf_stream_decode(struct decoder *decoder, struct input_stream *is) if (!dsf_read_metadata(decoder, is, &metadata)) return; - GError *error = NULL; + Error error; AudioFormat audio_format; if (!audio_format_init_checked(audio_format, metadata.sample_rate / 8, SampleFormat::DSD, - metadata.channels, &error)) { - g_warning("%s", error->message); - g_error_free(error); + metadata.channels, error)) { + g_warning("%s", error.GetMessage()); return; } /* Calculate song time from DSD chunk size and sample frequency */ @@ -320,7 +320,7 @@ dsf_scan_stream(struct input_stream *is, AudioFormat audio_format; if (!audio_format_init_checked(audio_format, metadata.sample_rate / 8, SampleFormat::DSD, - metadata.channels, NULL)) + metadata.channels, IgnoreError())) /* refuse to parse files which we cannot play anyway */ return false; |