aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mad_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-17 08:51:34 +0100
committerMax Kellermann <max@duempel.org>2009-02-17 08:51:34 +0100
commitd8db46edfaed14c38d97e8880ff07fc629908b2d (patch)
tree716059a2d530fce866d2721e8093fa35f301d809 /src/decoder/mad_plugin.c
parentc4d69f0ae1e0df6bac03fe131b4e8a40f75b5c4b (diff)
downloadmpd-d8db46edfaed14c38d97e8880ff07fc629908b2d.tar.gz
mpd-d8db46edfaed14c38d97e8880ff07fc629908b2d.tar.xz
mpd-d8db46edfaed14c38d97e8880ff07fc629908b2d.zip
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.
Diffstat (limited to '')
-rw-r--r--src/decoder/mad_plugin.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/decoder/mad_plugin.c b/src/decoder/mad_plugin.c
index 71d72bd12..5b5f8ba42 100644
--- a/src/decoder/mad_plugin.c
+++ b/src/decoder/mad_plugin.c
@@ -32,6 +32,9 @@
#include <id3tag.h>
#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;
}