diff options
author | Max Kellermann <max@duempel.org> | 2009-01-30 15:57:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-30 15:57:43 +0100 |
commit | 0d3dff95129c8879a601b90a14c6c6c8c1c67b28 (patch) | |
tree | bae39acb554b1ebaadc0dd00d57fca2bb63e6c00 /src/output | |
parent | 76b217f71e5e39c0ebc433338f9c08975285561a (diff) | |
download | mpd-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/output')
-rw-r--r-- | src/output/jack_plugin.c | 7 |
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; } |