mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: shortcut configure_format
When we don't have a format and can't to clear it, we can return immediately.
This commit is contained in:
		
							parent
							
								
									bc66060b7d
								
							
						
					
					
						commit
						82f7ed419c
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -438,6 +438,9 @@ static int configure_format(struct impl *this, uint32_t flags, const struct spa_
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int res;
 | 
						int res;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (format == NULL && !this->have_format)
 | 
				
			||||||
 | 
							return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_log_debug(this->log, "%p: configure format:", this);
 | 
						spa_log_debug(this->log, "%p: configure format:", this);
 | 
				
			||||||
	if (format && spa_log_level_enabled(this->log, SPA_LOG_LEVEL_DEBUG))
 | 
						if (format && spa_log_level_enabled(this->log, SPA_LOG_LEVEL_DEBUG))
 | 
				
			||||||
		spa_debug_format(0, NULL, format);
 | 
							spa_debug_format(0, NULL, format);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue