videoconvert: consume input buffer in all cases

Return the input buffer when we get some error so that the other side
can send new data.
This commit is contained in:
Wim Taymans 2025-04-23 11:14:34 +02:00
parent 957bde02cd
commit 49c4c44dce

View file

@ -1812,6 +1812,7 @@ static int impl_node_process(void *object)
}
sbuf = &in_port->buffers[input->buffer_id];
input->status = SPA_STATUS_NEED_DATA;
if ((dbuf = peek_buffer(this, out_port)) == NULL) {
spa_log_error(this->log, "%p: out of buffers", this);
@ -1902,8 +1903,6 @@ static int impl_node_process(void *object)
output->buffer_id = dbuf->id;
output->status = SPA_STATUS_HAVE_DATA;
input->status = SPA_STATUS_NEED_DATA;
return SPA_STATUS_HAVE_DATA;
}