mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
gst: set node.name and node.description based on client-name property
This commit is contained in:
parent
921aba9edf
commit
ad9d485d1b
2 changed files with 10 additions and 6 deletions
|
|
@ -1077,11 +1077,13 @@ gst_pipewire_src_open (GstPipeWireSrc * pwsrc)
|
|||
|
||||
pw_thread_loop_lock (pwsrc->core->loop);
|
||||
|
||||
props = pw_properties_new (NULL, NULL);
|
||||
if (pwsrc->client_name) {
|
||||
pw_properties_set (props, PW_KEY_NODE_NAME, pwsrc->client_name);
|
||||
pw_properties_set (props, PW_KEY_NODE_DESCRIPTION, pwsrc->client_name);
|
||||
}
|
||||
if (pwsrc->properties) {
|
||||
props = pw_properties_new (NULL, NULL);
|
||||
gst_structure_foreach (pwsrc->properties, copy_properties, props);
|
||||
} else {
|
||||
props = NULL;
|
||||
}
|
||||
|
||||
if ((pwsrc->stream = pw_stream_new (pwsrc->core->core,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue