mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	debug: Don't debug EBUSY params
When a device returned EBUSY when enumerating params, don't try to enumerate (and fail) them again.
This commit is contained in:
		
							parent
							
								
									f02c339645
								
							
						
					
					
						commit
						79fd4c941f
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -212,6 +212,8 @@ static int debug_params(struct impl *this, struct spa_node *node,
 | 
				
			||||||
        spa_log_error(this->log, "params %s: %d:%d (%s) %s",
 | 
					        spa_log_error(this->log, "params %s: %d:%d (%s) %s",
 | 
				
			||||||
			spa_debug_type_find_name(spa_type_param, id),
 | 
								spa_debug_type_find_name(spa_type_param, id),
 | 
				
			||||||
			direction, port_id, debug, spa_strerror(err));
 | 
								direction, port_id, debug, spa_strerror(err));
 | 
				
			||||||
 | 
						if (err == -EBUSY)
 | 
				
			||||||
 | 
							return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        state = 0;
 | 
					        state = 0;
 | 
				
			||||||
        while (true) {
 | 
					        while (true) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -600,6 +600,8 @@ int pw_context_debug_port_params(struct pw_context *this,
 | 
				
			||||||
	pw_log_error("params %s: %d:%d (%s) %s",
 | 
						pw_log_error("params %s: %d:%d (%s) %s",
 | 
				
			||||||
			spa_debug_type_find_name(spa_type_param, id),
 | 
								spa_debug_type_find_name(spa_type_param, id),
 | 
				
			||||||
			direction, port_id, debug, spa_strerror(err));
 | 
								direction, port_id, debug, spa_strerror(err));
 | 
				
			||||||
 | 
						if (err == -EBUSY)
 | 
				
			||||||
 | 
							return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        state = 0;
 | 
					        state = 0;
 | 
				
			||||||
        while (true) {
 | 
					        while (true) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue