mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	node: Pause when Suspend is not implemented
This commit is contained in:
		
							parent
							
								
									49332eb30f
								
							
						
					
					
						commit
						a607174033
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -350,6 +350,9 @@ static int suspend_node(struct pw_impl_node *this)
 | 
			
		|||
 | 
			
		||||
	res = spa_node_send_command(this->node,
 | 
			
		||||
				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Suspend));
 | 
			
		||||
	if (res == -ENOTSUP)
 | 
			
		||||
		res = spa_node_send_command(this->node,
 | 
			
		||||
				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Pause));
 | 
			
		||||
	if (res < 0 && res != -EIO)
 | 
			
		||||
		pw_log_warn(NAME" %p: suspend node error %s", this, spa_strerror(res));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue