jack: print info messages

Use jack_set_info_function() to install an info callback.  Don't let
libjack print them to stderr.
This commit is contained in:
Max Kellermann 2009-01-30 15:57:43 +01:00
parent 76b217f71e
commit 0d3dff9512

View File

@ -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;
}