Commit 115875dc authored by Wim Taymans's avatar Wim Taymans
Browse files

pulse-server: add more properties

Add device.class property
parent 78ff44b9
Pipeline #496383 passed with stages
in 3 minutes and 43 seconds
......@@ -212,6 +212,8 @@ struct module *create_module_ladspa_sink(struct impl *impl, const char *argument
}
if (pw_properties_get(capture_props, PW_KEY_MEDIA_CLASS) == NULL)
pw_properties_set(capture_props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
if (pw_properties_get(capture_props, PW_KEY_DEVICE_CLASS) == NULL)
pw_properties_set(capture_props, PW_KEY_DEVICE_CLASS, "filter");
if ((str = pw_properties_get(props, "master")) != NULL ||
(str = pw_properties_get(props, "sink_master")) != NULL) {
......
......@@ -212,6 +212,8 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
}
if (pw_properties_get(playback_props, PW_KEY_MEDIA_CLASS) == NULL)
pw_properties_set(playback_props, PW_KEY_MEDIA_CLASS, "Audio/Source");
if (pw_properties_get(playback_props, PW_KEY_DEVICE_CLASS) == NULL)
pw_properties_set(playback_props, PW_KEY_DEVICE_CLASS, "filter");
if ((str = pw_properties_get(props, "master")) != NULL ||
(str = pw_properties_get(props, "source_master")) != NULL) {
......
......@@ -176,7 +176,10 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
module_args_add_props(capture_props, str);
pw_properties_set(props, "sink_properties", NULL);
}
pw_properties_set(capture_props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
if (pw_properties_get(capture_props, PW_KEY_MEDIA_CLASS) == NULL)
pw_properties_set(capture_props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
if (pw_properties_get(capture_props, PW_KEY_DEVICE_CLASS) == NULL)
pw_properties_set(capture_props, PW_KEY_DEVICE_CLASS, "filter");
if (pw_properties_get(capture_props, PW_KEY_NODE_DESCRIPTION) == NULL) {
str = pw_properties_get(props, "master");
......
......@@ -176,7 +176,10 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
module_args_add_props(playback_props, str);
pw_properties_set(props, "source_properties", NULL);
}
pw_properties_set(playback_props, PW_KEY_MEDIA_CLASS, "Audio/Source");
if (pw_properties_get(playback_props, PW_KEY_MEDIA_CLASS) == NULL)
pw_properties_set(playback_props, PW_KEY_MEDIA_CLASS, "Audio/Source");
if (pw_properties_get(playback_props, PW_KEY_DEVICE_CLASS) == NULL)
pw_properties_set(playback_props, PW_KEY_DEVICE_CLASS, "filter");
if (pw_properties_get(playback_props, PW_KEY_NODE_DESCRIPTION) == NULL) {
str = pw_properties_get(props, "master");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment