mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	adapter: small cleanup
This commit is contained in:
		
							parent
							
								
									4fb9e7eecc
								
							
						
					
					
						commit
						f8059be328
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -124,7 +124,7 @@ static void node_port_init(void *data, struct pw_impl_port *port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
 | 
						if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
 | 
				
			||||||
	    strcmp(str, "UNK") == 0) {
 | 
						    strcmp(str, "UNK") == 0) {
 | 
				
			||||||
		snprintf(position, 7, "%d", pw_impl_port_get_id(port));
 | 
							snprintf(position, sizeof(position)-1, "%d", pw_impl_port_get_id(port));
 | 
				
			||||||
		str = position;
 | 
							str = position;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (direction == n->direction) {
 | 
						if (direction == n->direction) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue