From d8db46edfaed14c38d97e8880ff07fc629908b2d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Feb 2009 08:51:34 +0100 Subject: decoders: added and fixed GLib log domains Fixed the log domains of the renamed decoders. Added G_LOG_DOMAIN macros in decoders which don't have one already. --- src/decoder/mad_plugin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/decoder/mad_plugin.c') diff --git a/src/decoder/mad_plugin.c b/src/decoder/mad_plugin.c index 71d72bd1..5b5f8ba4 100644 --- a/src/decoder/mad_plugin.c +++ b/src/decoder/mad_plugin.c @@ -32,6 +32,9 @@ #include #endif +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "mad" + #define FRAMES_CUSHION 2000 #define READ_BUFFER_SIZE 40960 @@ -378,7 +381,7 @@ static void mp3_parse_id3(struct mp3_data *data, size_t tagsize, } if (count != tagsize) { - g_debug("mp3_decode: error parsing ID3 tag\n"); + g_debug("error parsing ID3 tag"); g_free(allocated); return; } @@ -1195,8 +1198,7 @@ static struct tag *mp3_tag_dup(const char *file) total_time = mp3_total_file_time(file); if (total_time < 0) { - g_debug("mp3_tag_dup: Failed to get total song time from: %s\n", - file); + g_debug("Failed to get total song time from: %s", file); return NULL; } -- cgit v1.2.3