mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	introspect: clear port info
This commit is contained in:
		
							parent
							
								
									458946177e
								
							
						
					
					
						commit
						893873b69e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -167,6 +167,7 @@ static int sink_callback(pa_context *c, struct global *g, struct sink_data *d)
 | 
				
			||||||
			if (!has_device(&cg->card_info.port_devices[n], g->node_info.profile_device_id))
 | 
								if (!has_device(&cg->card_info.port_devices[n], g->node_info.profile_device_id))
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								spa_zero(spi[j]);
 | 
				
			||||||
			i.ports[j] = &spi[j];
 | 
								i.ports[j] = &spi[j];
 | 
				
			||||||
			spi[j].name = ci->ports[n]->name;
 | 
								spi[j].name = ci->ports[n]->name;
 | 
				
			||||||
			spi[j].description = ci->ports[n]->description;
 | 
								spi[j].description = ci->ports[n]->description;
 | 
				
			||||||
| 
						 | 
					@ -903,6 +904,8 @@ static int source_callback(pa_context *c, struct global *g, struct source_data *
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			if (!has_device(&cg->card_info.port_devices[n], g->node_info.profile_device_id))
 | 
								if (!has_device(&cg->card_info.port_devices[n], g->node_info.profile_device_id))
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								spa_zero(spi[j]);
 | 
				
			||||||
			i.ports[j] = &spi[j];
 | 
								i.ports[j] = &spi[j];
 | 
				
			||||||
			spi[j].name = ci->ports[n]->name;
 | 
								spi[j].name = ci->ports[n]->name;
 | 
				
			||||||
			spi[j].description = ci->ports[n]->description;
 | 
								spi[j].description = ci->ports[n]->description;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue