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

@ -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;