jack: stop freewheeling correctly

Setting a NULL value for the property will remove the property and
will thus not send an update to the server and will thus not stop
freewheeling. Use "" to remove ourselves from the freewheel group
instead of looping forever.

See #1265
This commit is contained in:
Wim Taymans 2021-06-07 12:22:47 +02:00
parent 9a90030596
commit b142e7f09f

View file

@ -3504,7 +3504,7 @@ int jack_set_freewheel(jack_client_t* client, int onoff)
pw_thread_loop_lock(c->context.loop);
pw_properties_set(c->props, "node.group",
onoff ? "pipewire.freewheel" : NULL);
onoff ? "pipewire.freewheel" : "");
c->info.change_mask |= SPA_NODE_CHANGE_MASK_PROPS;
c->info.props = &c->props->dict;