mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: only update port name for other ports
Don't try to check for renames of our own port, we cause that ourselves. Also use the name of the port to find our ports.
This commit is contained in:
		
							parent
							
								
									e3fd6fac49
								
							
						
					
					
						commit
						acf463050d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -3954,7 +3954,7 @@ static void registry_event_global(void *data, uint32_t id,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		o = NULL;
 | 
							o = NULL;
 | 
				
			||||||
		if (node_id == c->node_id) {
 | 
							if (node_id == c->node_id) {
 | 
				
			||||||
			snprintf(tmp, sizeof(tmp), "%s:%s", c->name, str);
 | 
								snprintf(tmp, sizeof(tmp), "%s:%s", c->name, name);
 | 
				
			||||||
			o = find_port_by_name(c, tmp);
 | 
								o = find_port_by_name(c, tmp);
 | 
				
			||||||
			if (o != NULL)
 | 
								if (o != NULL)
 | 
				
			||||||
				pw_log_info("%p: %s found our port %p", c, tmp, o);
 | 
									pw_log_info("%p: %s found our port %p", c, tmp, o);
 | 
				
			||||||
| 
						 | 
					@ -4015,6 +4015,7 @@ static void registry_event_global(void *data, uint32_t id,
 | 
				
			||||||
					o->port.system_id+1);
 | 
										o->port.system_id+1);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (node_id != c->node_id)
 | 
				
			||||||
			update_port_name(o, name);
 | 
								update_port_name(o, name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		pw_log_debug("%p: %p add port %d name:%s %d", c, o, id,
 | 
							pw_log_debug("%p: %p add port %d name:%s %d", c, o, id,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue