mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: improve short name
Search the : backwards so that we can deal with client names with : in them. See #714
This commit is contained in:
		
							parent
							
								
									58d2fe4440
								
							
						
					
					
						commit
						8101334b1e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3495,7 +3495,7 @@ const char * jack_port_short_name (const jack_port_t *port)
 | 
			
		|||
{
 | 
			
		||||
	struct object *o = (struct object *) port;
 | 
			
		||||
	spa_return_val_if_fail(o != NULL, NULL);
 | 
			
		||||
	return strchr(o->port.name, ':') + 1;
 | 
			
		||||
	return rindex(o->port.name, ':') + 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
SPA_EXPORT
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue