jack: initialize libjack's error function in mpd_jack_init()
Do the global libjack initialization in the global plugin initialization function.
This commit is contained in:
parent
3a75f15844
commit
67cf2ee6e4
@ -200,6 +200,8 @@ mpd_jack_init(struct audio_output *ao,
|
|||||||
jd->ringbuffer_size =
|
jd->ringbuffer_size =
|
||||||
config_get_block_unsigned(param, "ringbuffer_size", 32768);
|
config_get_block_unsigned(param, "ringbuffer_size", 32768);
|
||||||
|
|
||||||
|
jack_set_error_function(mpd_jack_error);
|
||||||
|
|
||||||
return jd;
|
return jd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,7 +229,6 @@ mpd_jack_connect(struct jack_data *jd, struct audio_format *audio_format)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
jack_set_error_function(mpd_jack_error);
|
|
||||||
jack_set_process_callback(jd->client, mpd_jack_process, jd);
|
jack_set_process_callback(jd->client, mpd_jack_process, jd);
|
||||||
jack_set_sample_rate_callback(jd->client, mpd_jack_srate, jd);
|
jack_set_sample_rate_callback(jd->client, mpd_jack_srate, jd);
|
||||||
jack_on_shutdown(jd->client, mpd_jack_shutdown, jd);
|
jack_on_shutdown(jd->client, mpd_jack_shutdown, jd);
|
||||||
|
Loading…
Reference in New Issue
Block a user