modules: remove some useless device names

This commit is contained in:
Wim Taymans 2021-05-28 11:20:06 +02:00
parent b9efb25605
commit 913434167d
6 changed files with 0 additions and 14 deletions

View file

@ -193,8 +193,6 @@ struct module *create_module_ladspa_sink(struct impl *impl, const char *argument
if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL);
} else {
pw_properties_set(props, PW_KEY_NODE_NAME, "null");
}
if ((str = pw_properties_get(props, "sink_properties")) != NULL) {
module_args_add_props(capture_props, str);

View file

@ -193,8 +193,6 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
if ((str = pw_properties_get(props, "source_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "source_name", NULL);
} else {
pw_properties_set(props, PW_KEY_NODE_NAME, "null");
}
if ((str = pw_properties_get(props, "source_properties")) != NULL) {
module_args_add_props(capture_props, str);

View file

@ -143,8 +143,6 @@ struct module *create_module_null_sink(struct impl *impl, const char *argument)
if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL);
} else {
pw_properties_set(props, PW_KEY_NODE_NAME, "null");
}
if ((str = pw_properties_get(props, "sink_properties")) != NULL) {
module_args_add_props(props, str);

View file

@ -37,7 +37,6 @@
#include "registry.h"
#define DEFAULT_FILE_NAME "/tmp/music.output"
#define DEFAULT_SINK_NAME "fifo_output"
struct module_pipesink_data {
struct module *module;
@ -260,9 +259,6 @@ struct module *create_module_pipe_sink(struct impl *impl, const char *argument)
if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(capture_props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL);
} else {
pw_properties_set(capture_props, PW_KEY_NODE_NAME, DEFAULT_SINK_NAME);
pw_properties_set(props, "sink_name", NULL);
}
if ((str = pw_properties_get(props, "file")) != NULL) {

View file

@ -172,8 +172,6 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
if ((str = pw_properties_get(props, "sink_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "sink_name", NULL);
} else {
pw_properties_set(props, PW_KEY_NODE_NAME, "null");
}
if ((str = pw_properties_get(props, "sink_properties")) != NULL) {
module_args_add_props(capture_props, str);

View file

@ -172,8 +172,6 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
if ((str = pw_properties_get(props, "source_name")) != NULL) {
pw_properties_set(props, PW_KEY_NODE_NAME, str);
pw_properties_set(props, "source_name", NULL);
} else {
pw_properties_set(props, PW_KEY_NODE_NAME, "null");
}
if ((str = pw_properties_get(props, "source_properties")) != NULL) {
module_args_add_props(playback_props, str);