From 1cca24c585c695d099ea92472176c06050d010eb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 23 Apr 2025 11:14:34 +0200 Subject: [PATCH] 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. --- spa/plugins/videoconvert/videoconvert-ffmpeg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/videoconvert/videoconvert-ffmpeg.c b/spa/plugins/videoconvert/videoconvert-ffmpeg.c index d5cb2ee7b..41e2da14b 100644 --- a/spa/plugins/videoconvert/videoconvert-ffmpeg.c +++ b/spa/plugins/videoconvert/videoconvert-ffmpeg.c @@ -1898,6 +1898,7 @@ static int impl_node_process(void *object) } sbuf = &in_port->buffers[input->buffer_id]; + input->status = SPA_STATUS_NEED_DATA; if (this->fmt_passthrough) { dbuf = &out_port->buffers[input->buffer_id]; @@ -2005,8 +2006,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; }