mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote-node: implement suspend
This commit is contained in:
		
							parent
							
								
									e8464cf1b3
								
							
						
					
					
						commit
						38bc80a3b8
					
				
					 2 changed files with 10 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -399,12 +399,8 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
 | 
			
		|||
		spa_vulkan_start(&this->state);
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	case SPA_NODE_COMMAND_Suspend:
 | 
			
		||||
	case SPA_NODE_COMMAND_Pause:
 | 
			
		||||
		if (!port->have_format)
 | 
			
		||||
			return -EIO;
 | 
			
		||||
		if (port->n_buffers == 0)
 | 
			
		||||
			return -EIO;
 | 
			
		||||
 | 
			
		||||
		if (!this->started)
 | 
			
		||||
			return 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue