mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioadapter: only check port params when changed
This commit is contained in:
		
							parent
							
								
									7ba9044c3d
								
							
						
					
					
						commit
						e7aa15e475
					
				
					 1 changed files with 12 additions and 10 deletions
				
			
		| 
						 | 
					@ -651,17 +651,19 @@ static void follower_port_info(void *data,
 | 
				
			||||||
	struct impl *this = data;
 | 
						struct impl *this = data;
 | 
				
			||||||
	uint32_t i;
 | 
						uint32_t i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for (i = 0; i < info->n_params; i++) {
 | 
						if (info->change_mask & SPA_PORT_CHANGE_MASK_PARAMS) {
 | 
				
			||||||
		uint32_t idx = SPA_ID_INVALID;
 | 
							for (i = 0; i < info->n_params; i++) {
 | 
				
			||||||
 | 
								uint32_t idx = SPA_ID_INVALID;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		switch (info->params[i].id) {
 | 
								switch (info->params[i].id) {
 | 
				
			||||||
		case SPA_PARAM_Format:
 | 
								case SPA_PARAM_Format:
 | 
				
			||||||
			idx = 3;
 | 
									idx = 3;
 | 
				
			||||||
			break;
 | 
									break;
 | 
				
			||||||
		}
 | 
								}
 | 
				
			||||||
		if (idx != SPA_ID_INVALID) {
 | 
								if (idx != SPA_ID_INVALID) {
 | 
				
			||||||
			this->params[idx] = info->params[i];
 | 
									this->params[idx] = info->params[i];
 | 
				
			||||||
			this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
 | 
									this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (!this->add_listener)
 | 
						if (!this->add_listener)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue