aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-30 15:57:43 +0100
committerMax Kellermann <max@duempel.org>2009-01-30 15:57:43 +0100
commit0d3dff95129c8879a601b90a14c6c6c8c1c67b28 (patch)
treebae39acb554b1ebaadc0dd00d57fca2bb63e6c00 /src
parent76b217f71e5e39c0ebc433338f9c08975285561a (diff)
downloadmpd-0d3dff95129c8879a601b90a14c6c6c8c1c67b28.tar.gz
mpd-0d3dff95129c8879a601b90a14c6c6c8c1c67b28.tar.xz
mpd-0d3dff95129c8879a601b90a14c6c6c8c1c67b28.zip
jack: print info messages
Use jack_set_info_function() to install an info callback. Don't let libjack print them to stderr.
Diffstat (limited to 'src')
-rw-r--r--src/output/jack_plugin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c
index 7655da193..0439fa5cd 100644
--- a/src/output/jack_plugin.c
+++ b/src/output/jack_plugin.c
@@ -165,6 +165,12 @@ mpd_jack_error(const char *msg)
g_warning("%s", msg);
}
+static void
+mpd_jack_info(const char *msg)
+{
+ g_message("%s", msg);
+}
+
static void *
mpd_jack_init(struct audio_output *ao,
G_GNUC_UNUSED const struct audio_format *audio_format,
@@ -199,6 +205,7 @@ mpd_jack_init(struct audio_output *ao,
config_get_block_unsigned(param, "ringbuffer_size", 32768);
jack_set_error_function(mpd_jack_error);
+ jack_set_info_function(mpd_jack_info);
return jd;
}