Re: [PATCH 2/2] media: venus: vdec: Start capture after a seek that streams CAPTURE first

From: bod

Date: Fri Oct 09 2026 - 05:16:31 EST


On 2026-09-28 23:40 +0200, David Heidelberg wrote:
> After both queues are streamed off, the decoder sits in
> VENUS_DEC_STATE_SEEK. vdec_start_capture() does nothing while OUTPUT is
> not streaming, and when OUTPUT is streamed on again, the SEEK path only
> queues the DPB buffers if the capture side was already started. So an
> application that streams on CAPTURE before OUTPUT gets a decoder that
> never receives DPB or capture buffers: the firmware consumes the
> bitstream and no frame is ever returned.
>
> The stateful decoder interface does not require either order, and
> GStreamer restarts with CAPTURE first. Finish the capture start from the
> OUTPUT SEEK path when the CAPTURE queue is already streaming, the same
> way vdec_start_capture() does in VENUS_DEC_STATE_DECODING.
>
> Assisted-by: LLM
> Signed-off-by: David Heidelberg <david@xxxxxxx>

This one is certainly missing at least a Fixes:
---
bod