remote-node: implement suspend

This commit is contained in:
Wim Taymans 2019-10-23 17:20:46 +02:00
parent e8464cf1b3
commit 38bc80a3b8
2 changed files with 10 additions and 5 deletions

View file

@ -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;