mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
small cleanups
This commit is contained in:
parent
3d9f54d8a4
commit
ce275e5917
3 changed files with 13 additions and 13 deletions
|
|
@ -221,7 +221,7 @@ handle_node(struct impl *impl, struct sm_object *object)
|
||||||
node->direction = direction;
|
node->direction = direction;
|
||||||
node->type = NODE_TYPE_STREAM;
|
node->type = NODE_TYPE_STREAM;
|
||||||
node->media = strdup(media_class);
|
node->media = strdup(media_class);
|
||||||
pw_log_debug(NAME "%p: node %d is stream %s", impl, object->id, node->media);
|
pw_log_debug(NAME" %p: node %d is stream %s", impl, object->id, node->media);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const char *media;
|
const char *media;
|
||||||
|
|
|
||||||
|
|
@ -936,12 +936,12 @@ filter_new(struct pw_context *context, const char *name,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL && extra) {
|
if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL && extra) {
|
||||||
if ((str = pw_properties_get(extra, PW_KEY_APP_NAME)) != NULL)
|
str = pw_properties_get(extra, PW_KEY_APP_NAME);
|
||||||
pw_properties_set(props, PW_KEY_NODE_NAME, str);
|
if (str == NULL)
|
||||||
else if ((str = pw_properties_get(extra, PW_KEY_APP_PROCESS_BINARY)) != NULL)
|
str = pw_properties_get(extra, PW_KEY_APP_PROCESS_BINARY);
|
||||||
pw_properties_set(props, PW_KEY_NODE_NAME, str);
|
if (str == NULL)
|
||||||
else
|
str = name;
|
||||||
pw_properties_set(props, PW_KEY_NODE_NAME, name);
|
pw_properties_set(props, PW_KEY_NODE_NAME, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
spa_hook_list_init(&impl->hooks);
|
spa_hook_list_init(&impl->hooks);
|
||||||
|
|
|
||||||
|
|
@ -1076,12 +1076,12 @@ stream_new(struct pw_context *context, const char *name,
|
||||||
pw_properties_set(props, PW_KEY_STREAM_IS_LIVE, "1");
|
pw_properties_set(props, PW_KEY_STREAM_IS_LIVE, "1");
|
||||||
|
|
||||||
if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL && extra) {
|
if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL && extra) {
|
||||||
if ((str = pw_properties_get(extra, PW_KEY_APP_NAME)) != NULL)
|
str = pw_properties_get(extra, PW_KEY_APP_NAME);
|
||||||
pw_properties_set(props, PW_KEY_NODE_NAME, str);
|
if (str == NULL)
|
||||||
else if ((str = pw_properties_get(extra, PW_KEY_APP_PROCESS_BINARY)) != NULL)
|
str = pw_properties_get(extra, PW_KEY_APP_PROCESS_BINARY);
|
||||||
pw_properties_set(props, PW_KEY_NODE_NAME, str);
|
if (str == NULL)
|
||||||
else
|
str = name;
|
||||||
pw_properties_set(props, PW_KEY_NODE_NAME, name);
|
pw_properties_set(props, PW_KEY_NODE_NAME, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
spa_hook_list_init(&impl->hooks);
|
spa_hook_list_init(&impl->hooks);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue