decoder/mad, ...: more libfmt logging
This commit is contained in:
@@ -101,9 +101,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
|
||||
char *endptr;
|
||||
unsigned value = ParseUnsigned(s, &endptr);
|
||||
if (endptr == s || *endptr != 0) {
|
||||
FormatWarning(pcm_decoder_domain,
|
||||
"Failed to parse sample rate: %s",
|
||||
s);
|
||||
FmtWarning(pcm_decoder_domain,
|
||||
"Failed to parse sample rate: {}",
|
||||
s);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -123,9 +123,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
|
||||
char *endptr;
|
||||
unsigned value = ParseUnsigned(s, &endptr);
|
||||
if (endptr == s || *endptr != 0) {
|
||||
FormatWarning(pcm_decoder_domain,
|
||||
"Failed to parse sample rate: %s",
|
||||
s);
|
||||
FmtWarning(pcm_decoder_domain,
|
||||
"Failed to parse sample rate: {}",
|
||||
s);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -146,9 +146,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
|
||||
const char *s = i->second.c_str();
|
||||
audio_format = ParseAudioFormat(s, false);
|
||||
if (!audio_format.IsFullyDefined()) {
|
||||
FormatWarning(pcm_decoder_domain,
|
||||
"Invalid audio format specification: %s",
|
||||
mime);
|
||||
FmtWarning(pcm_decoder_domain,
|
||||
"Invalid audio format specification: {}",
|
||||
mime);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -157,9 +157,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
|
||||
}
|
||||
|
||||
if (audio_format.sample_rate == 0) {
|
||||
FormatWarning(pcm_decoder_domain,
|
||||
"Missing 'rate' parameter: %s",
|
||||
mime);
|
||||
FmtWarning(pcm_decoder_domain,
|
||||
"Missing 'rate' parameter: {}",
|
||||
mime);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user