mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	channelmix: set mix log earlier
Set mix.log already in impl_init, since it's not going to change. Should fix null pointer access under some cases.
This commit is contained in:
		
							parent
							
								
									1cf869cea8
								
							
						
					
					
						commit
						b9b57d32d5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -1576,6 +1576,7 @@ impl_init(const struct spa_handle_factory *factory,
 | 
				
			||||||
	props_reset(&this->props);
 | 
						props_reset(&this->props);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	this->mix.options = CHANNELMIX_OPTION_NORMALIZE;
 | 
						this->mix.options = CHANNELMIX_OPTION_NORMALIZE;
 | 
				
			||||||
 | 
						this->mix.log = this->log;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for (i = 0; info && i < info->n_items; i++) {
 | 
						for (i = 0; info && i < info->n_items; i++) {
 | 
				
			||||||
		const char *k = info->items[i].key;
 | 
							const char *k = info->items[i].key;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue