mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -296,6 +296,10 @@ struct module *create_module_pipe_sink(struct impl *impl, const char *argument)
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (pw_properties_get(capture_props, PW_KEY_NODE_GROUP) == NULL)
|
||||
pw_properties_set(capture_props, PW_KEY_NODE_GROUP, "pipewire.dummy");
|
||||
if (pw_properties_get(capture_props, PW_KEY_NODE_VIRTUAL) == NULL)
|
||||
pw_properties_set(capture_props, PW_KEY_NODE_VIRTUAL, "true");
|
||||
pw_properties_set(capture_props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
|
||||
|
||||
module = module_new(impl, &module_pipesink_methods, sizeof(*d));
|
||||
|
|
|
|||
|
|
@ -353,6 +353,10 @@ struct module *create_module_pipe_source(struct impl *impl, const char *argument
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (pw_properties_get(playback_props, PW_KEY_NODE_GROUP) == NULL)
|
||||
pw_properties_set(playback_props, PW_KEY_NODE_GROUP, "pipewire.dummy");
|
||||
if (pw_properties_get(playback_props, PW_KEY_NODE_VIRTUAL) == NULL)
|
||||
pw_properties_set(playback_props, PW_KEY_NODE_VIRTUAL, "true");
|
||||
pw_properties_set(playback_props, PW_KEY_MEDIA_CLASS, "Audio/Source");
|
||||
|
||||
module = module_new(impl, &module_pipesource_methods, sizeof(*d) + stride);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue