From: Hans Verkuil <hverkuil-cisco@xxxxxxxxx> Only set first_source_change_sent for decoders. Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx> --- drivers/media/platform/vicodec/vicodec-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index 7e4ac412cc38..ba327512e085 100644 --- a/drivers/media/platform/vicodec/vicodec-core.c +++ b/drivers/media/platform/vicodec/vicodec-core.c @@ -1521,7 +1521,8 @@ static void vicodec_buf_queue(struct vb2_buffer *vb) * handled in job_ready */ if (vb2_is_streaming(vq_cap) && vb2_is_streaming(vq_out)) { - ctx->first_source_change_sent = true; + if (!ctx->is_enc) + ctx->first_source_change_sent = true; v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); return; } -- 2.17.1