media-session: disable JACK device by default

It is most likely to fail right now.
This commit is contained in:
Wim Taymans 2021-02-09 17:37:08 +01:00
parent 44d8a0a4c1
commit 739f3b9f7f
2 changed files with 6 additions and 3 deletions

View file

@ -1,8 +1,11 @@
# ALSA monitor config file #
properties = {
# Create a JACK device.
#alsa.jack-device = true
# Create a JACK device. This is not enabled by default because
# it requires that the PipeWire JACK replacement libraries are
# not used by the session manager, in order to be able to
# connect to the real JACK server.
#alsa.jack-device = false
}
rules = [

View file

@ -1047,7 +1047,7 @@ int sm_alsa_monitor_start(struct sm_media_session *session)
spa_list_init(&impl->device_list);
spa_device_add_listener(impl->monitor, &impl->listener, &alsa_udev_events, impl);
if ((str = pw_properties_get(impl->props, "alsa.jack-device")) == NULL ||
if ((str = pw_properties_get(impl->props, "alsa.jack-device")) != NULL &&
pw_properties_parse_bool(str)) {
if ((res = alsa_start_jack_device(impl)) < 0)
goto out_free;