mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
16faacec92
commit
62fa0823ec
5 changed files with 18 additions and 2 deletions
|
|
@ -415,6 +415,10 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
pw_properties_set(props, "sink.name", NULL);
|
||||
}
|
||||
|
||||
if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_GROUP, "pipewire.dummy");
|
||||
if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
|
||||
if ((str = pw_properties_get(props, PW_KEY_MEDIA_CLASS)) == NULL)
|
||||
pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue