mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: emit port_rename callbacks
When the port is renamed, we queue a PORT_RENAME callback with an arg1 as 1. Before emitting the event we check the registered state of the port but we want to suppress the event if the port was *not* registered, ie. when the registered state != 1 (arg1).
This commit is contained in:
		
							parent
							
								
									f60638a3aa
								
							
						
					
					
						commit
						b801527f88
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1095,7 +1095,7 @@ static void on_notify_event(void *data, uint64_t count)
 | 
			
		|||
					c->portregistration_arg);
 | 
			
		||||
			break;
 | 
			
		||||
		case NOTIFY_TYPE_PORT_RENAME:
 | 
			
		||||
			if (o->registered == notify->arg1)
 | 
			
		||||
			if (o->registered != notify->arg1)
 | 
			
		||||
				break;
 | 
			
		||||
			pw_log_debug("%p: port rename %u %s->%s", c, o->serial,
 | 
			
		||||
					o->port.old_name, o->port.name);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue