Skip to content

Commit

Permalink
pipe_manager: setting an empty or undefined node name tag to "Undefin…
Browse files Browse the repository at this point in the history
…ed Name" so we can still apply effects to these streams
  • Loading branch information
wwmm committed Dec 12, 2023
1 parent 41d1720 commit 457ed9e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pipe_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,14 +1061,13 @@ void on_registry_global(void* data,

std::string node_name;

if (!spa_dict_get_string(props, PW_KEY_NODE_NAME, node_name)) {
return;
if (!spa_dict_get_string(props, PW_KEY_NODE_NAME, node_name) || node_name.empty()) {
node_name = "Undefined Name";
}

// At least for now I do not think there is a point in showing the spectrum adn the output level filters in menus

if (node_name.empty() || util::str_contains(node_name, "output_level") ||
util::str_contains(node_name, "spectrum")) {
if (util::str_contains(node_name, "output_level") || util::str_contains(node_name, "spectrum")) {
return;
}

Expand Down

0 comments on commit 457ed9e

Please sign in to comment.