From 67cf2ee6e4ca8c003e5314c6b603c8557eff3bf8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 29 Jan 2009 23:12:08 +0100 Subject: jack: initialize libjack's error function in mpd_jack_init() Do the global libjack initialization in the global plugin initialization function. --- src/output/jack_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c index 14ce635dc..8dadec89c 100644 --- a/src/output/jack_plugin.c +++ b/src/output/jack_plugin.c @@ -200,6 +200,8 @@ mpd_jack_init(struct audio_output *ao, jd->ringbuffer_size = config_get_block_unsigned(param, "ringbuffer_size", 32768); + jack_set_error_function(mpd_jack_error); + return jd; } @@ -227,7 +229,6 @@ mpd_jack_connect(struct jack_data *jd, struct audio_format *audio_format) return -1; } - jack_set_error_function(mpd_jack_error); jack_set_process_callback(jd->client, mpd_jack_process, jd); jack_set_sample_rate_callback(jd->client, mpd_jack_srate, jd); jack_on_shutdown(jd->client, mpd_jack_shutdown, jd); -- cgit v1.2.3