mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: use PIPEWIRE_NODE env as target_id fallback
This commit is contained in:
		
							parent
							
								
									b89e07f8c0
								
							
						
					
					
						commit
						5d90fe26f3
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1466,6 +1466,8 @@ pw_stream_connect(struct pw_stream *stream,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (target_id != PW_ID_ANY)
 | 
						if (target_id != PW_ID_ANY)
 | 
				
			||||||
		pw_properties_setf(stream->properties, PW_KEY_NODE_TARGET, "%d", target_id);
 | 
							pw_properties_setf(stream->properties, PW_KEY_NODE_TARGET, "%d", target_id);
 | 
				
			||||||
 | 
						else if ((str = getenv("PIPEWIRE_NODE")) != NULL)
 | 
				
			||||||
 | 
							pw_properties_set(stream->properties, PW_KEY_NODE_TARGET, str);
 | 
				
			||||||
	if (flags & PW_STREAM_FLAG_AUTOCONNECT)
 | 
						if (flags & PW_STREAM_FLAG_AUTOCONNECT)
 | 
				
			||||||
		pw_properties_set(stream->properties, PW_KEY_NODE_AUTOCONNECT, "true");
 | 
							pw_properties_set(stream->properties, PW_KEY_NODE_AUTOCONNECT, "true");
 | 
				
			||||||
	if (flags & PW_STREAM_FLAG_DRIVER)
 | 
						if (flags & PW_STREAM_FLAG_DRIVER)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue