mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audiomixer: set change mask correctly
This commit is contained in:
		
							parent
							
								
									42eb28c0d2
								
							
						
					
					
						commit
						35dbea3c6c
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -985,6 +985,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	this->info.max_output_ports = 1;
 | 
						this->info.max_output_ports = 1;
 | 
				
			||||||
	this->info.change_mask |= SPA_NODE_CHANGE_MASK_FLAGS;
 | 
						this->info.change_mask |= SPA_NODE_CHANGE_MASK_FLAGS;
 | 
				
			||||||
	this->info.flags = SPA_NODE_FLAG_RT | SPA_NODE_FLAG_IN_DYNAMIC_PORTS;
 | 
						this->info.flags = SPA_NODE_FLAG_RT | SPA_NODE_FLAG_IN_DYNAMIC_PORTS;
 | 
				
			||||||
 | 
						this->info_all = this->info.change_mask;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	port = GET_OUT_PORT(this, 0);
 | 
						port = GET_OUT_PORT(this, 0);
 | 
				
			||||||
	port->valid = true;
 | 
						port->valid = true;
 | 
				
			||||||
| 
						 | 
					@ -994,6 +995,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	port->info.change_mask |= SPA_PORT_CHANGE_MASK_FLAGS;
 | 
						port->info.change_mask |= SPA_PORT_CHANGE_MASK_FLAGS;
 | 
				
			||||||
	port->info.flags = SPA_PORT_FLAG_DYNAMIC_DATA;
 | 
						port->info.flags = SPA_PORT_FLAG_DYNAMIC_DATA;
 | 
				
			||||||
	port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
 | 
						port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
 | 
				
			||||||
 | 
						port->info_all = port->info.change_mask;
 | 
				
			||||||
	port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
						port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
				
			||||||
	port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
						port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
				
			||||||
	port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, SPA_PARAM_INFO_READ);
 | 
						port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, SPA_PARAM_INFO_READ);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -921,6 +921,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	this->info.max_output_ports = 1;
 | 
						this->info.max_output_ports = 1;
 | 
				
			||||||
	this->info.change_mask |= SPA_NODE_CHANGE_MASK_FLAGS;
 | 
						this->info.change_mask |= SPA_NODE_CHANGE_MASK_FLAGS;
 | 
				
			||||||
	this->info.flags = SPA_NODE_FLAG_RT | SPA_NODE_FLAG_IN_DYNAMIC_PORTS;
 | 
						this->info.flags = SPA_NODE_FLAG_RT | SPA_NODE_FLAG_IN_DYNAMIC_PORTS;
 | 
				
			||||||
 | 
						this->info_all = this->info.change_mask;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	port = GET_OUT_PORT(this, 0);
 | 
						port = GET_OUT_PORT(this, 0);
 | 
				
			||||||
	port->valid = true;
 | 
						port->valid = true;
 | 
				
			||||||
| 
						 | 
					@ -930,6 +931,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	port->info.change_mask |= SPA_PORT_CHANGE_MASK_FLAGS;
 | 
						port->info.change_mask |= SPA_PORT_CHANGE_MASK_FLAGS;
 | 
				
			||||||
	port->info.flags = SPA_PORT_FLAG_DYNAMIC_DATA;
 | 
						port->info.flags = SPA_PORT_FLAG_DYNAMIC_DATA;
 | 
				
			||||||
	port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
 | 
						port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
 | 
				
			||||||
 | 
						port->info_all = port->info.change_mask;
 | 
				
			||||||
	port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
						port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ);
 | 
				
			||||||
	port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
						port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ);
 | 
				
			||||||
	port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, SPA_PARAM_INFO_READ);
 | 
						port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, SPA_PARAM_INFO_READ);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue