From ecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 4 Nov 2013 22:20:11 +0100 Subject: Log: add level "DEFAULT" Map LogLevel::INFO to G_LOG_LEVEL_INFO, and LogLevel::DEFAULT to G_LOG_LEVEL_MESSAGE. Now client connect/disconnect message are only logged on log_level "secure". --- src/decoder/FaadDecoderPlugin.cxx | 14 +++++++------- src/decoder/FfmpegDecoderPlugin.cxx | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/FaadDecoderPlugin.cxx b/src/decoder/FaadDecoderPlugin.cxx index e8b5ad4a8..f1dd5a343 100644 --- a/src/decoder/FaadDecoderPlugin.cxx +++ b/src/decoder/FaadDecoderPlugin.cxx @@ -427,17 +427,17 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is) } if (frame_info.channels != audio_format.channels) { - FormatInfo(faad_decoder_domain, - "channel count changed from %u to %u", - audio_format.channels, frame_info.channels); + FormatDefault(faad_decoder_domain, + "channel count changed from %u to %u", + audio_format.channels, frame_info.channels); break; } if (frame_info.samplerate != audio_format.sample_rate) { - FormatInfo(faad_decoder_domain, - "sample rate changed from %u to %lu", - audio_format.sample_rate, - (unsigned long)frame_info.samplerate); + FormatDefault(faad_decoder_domain, + "sample rate changed from %u to %lu", + audio_format.sample_rate, + (unsigned long)frame_info.samplerate); break; } diff --git a/src/decoder/FfmpegDecoderPlugin.cxx b/src/decoder/FfmpegDecoderPlugin.cxx index 0d24371d2..1b62eae57 100644 --- a/src/decoder/FfmpegDecoderPlugin.cxx +++ b/src/decoder/FfmpegDecoderPlugin.cxx @@ -282,8 +282,8 @@ ffmpeg_send_packet(Decoder &decoder, InputStream &is, if (len < 0) { /* if error, we skip the frame */ - LogInfo(ffmpeg_domain, - "decoding failed, frame skipped"); + LogDefault(ffmpeg_domain, + "decoding failed, frame skipped"); break; } -- cgit v1.2.3