modules: virtual sink/sources need driver

Virtual sinks and sources implemented with streams need to be grouped
with a driver node to be able to schedule. We don't have a way to let it
use a default driver so add it to the pipewire.dummy driver.

This fixes stalled pipe and other streams streams.

Fixes #1407
This commit is contained in:
Wim Taymans 2021-07-26 10:21:44 +02:00
parent 16faacec92
commit 62fa0823ec
5 changed files with 18 additions and 2 deletions

View file

@ -376,7 +376,7 @@ static int create_streams(struct impl *impl, struct client *client)
if (impl->capture) {
props = pw_properties_new(
PW_KEY_NODE_GROUP, client->name,
PW_KEY_NODE_GROUP, "pipewire.dummy",
PW_KEY_NODE_LATENCY, DEFAULT_LATENCY,
PW_KEY_NODE_TARGET, pw_properties_get(impl->props, "capture.node"),
NULL);
@ -396,7 +396,7 @@ static int create_streams(struct impl *impl, struct client *client)
}
if (impl->playback) {
props = pw_properties_new(
PW_KEY_NODE_GROUP, client->name,
PW_KEY_NODE_GROUP, "pipewire.dummy",
PW_KEY_NODE_LATENCY, DEFAULT_LATENCY,
PW_KEY_NODE_TARGET, pw_properties_get(impl->props, "playback.node"),
NULL);