mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -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
				
			
		| 
						 | 
				
			
			@ -659,11 +659,13 @@ gst_pipewire_sink_start (GstBaseSink * basesink)
 | 
			
		|||
 | 
			
		||||
  pwsink->negotiated = FALSE;
 | 
			
		||||
 | 
			
		||||
  props = pw_properties_new (NULL, NULL);
 | 
			
		||||
  if (pwsink->client_name) {
 | 
			
		||||
    pw_properties_set (props, PW_KEY_NODE_NAME, pwsink->client_name);
 | 
			
		||||
    pw_properties_set (props, PW_KEY_NODE_DESCRIPTION, pwsink->client_name);
 | 
			
		||||
  }
 | 
			
		||||
  if (pwsink->properties) {
 | 
			
		||||
    props = pw_properties_new (NULL, NULL);
 | 
			
		||||
    gst_structure_foreach (pwsink->properties, copy_properties, props);
 | 
			
		||||
  } else {
 | 
			
		||||
    props = NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  pw_thread_loop_lock (pwsink->core->loop);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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