diff options
author | Max Kellermann <max@duempel.org> | 2009-01-29 23:12:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-29 23:12:08 +0100 |
commit | 67cf2ee6e4ca8c003e5314c6b603c8557eff3bf8 (patch) | |
tree | 19b2cf6093a12ecade88acbc159d22c6d4c23884 /src/output | |
parent | 3a75f158449d3accdf61723fa1551ba26c5f5833 (diff) | |
download | mpd-67cf2ee6e4ca8c003e5314c6b603c8557eff3bf8.tar.gz mpd-67cf2ee6e4ca8c003e5314c6b603c8557eff3bf8.tar.xz mpd-67cf2ee6e4ca8c003e5314c6b603c8557eff3bf8.zip |
jack: initialize libjack's error function in mpd_jack_init()
Do the global libjack initialization in the global plugin
initialization function.
Diffstat (limited to '')
-rw-r--r-- | src/output/jack_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |