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:
parent
76b217f71e
commit
0d3dff9512
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user