mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	context: report error only once
This commit is contained in:
		
							parent
							
								
									72b61f614a
								
							
						
					
					
						commit
						c9ac5e6e1e
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -34,9 +34,10 @@
 | 
			
		|||
int pa_context_set_error(pa_context *c, int error) {
 | 
			
		||||
	pa_assert(error >= 0);
 | 
			
		||||
	pa_assert(error < PA_ERR_MAX);
 | 
			
		||||
	pw_log_debug("context %p: error %d %s", c, error, pa_strerror(error));
 | 
			
		||||
	if (c)
 | 
			
		||||
	if (c && c->error != error) {
 | 
			
		||||
		pw_log_debug("context %p: error %d %s", c, error, pa_strerror(error));
 | 
			
		||||
		c->error = error;
 | 
			
		||||
	}
 | 
			
		||||
	return error;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue