Commit 6dd5ef5b authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab

[media] coda: remove unused isequence, reset qsequence in stop_streaming

The isequence counter is never used, qsequence counts the buffers queued into
the bit decoder bitstream ringbuffer. It needs to be reset in stop_streaming.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 31db5adb
...@@ -1304,7 +1304,7 @@ static void coda_stop_streaming(struct vb2_queue *q) ...@@ -1304,7 +1304,7 @@ static void coda_stop_streaming(struct vb2_queue *q)
coda_bit_stream_end_flag(ctx); coda_bit_stream_end_flag(ctx);
ctx->isequence = 0; ctx->qsequence = 0;
while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx)))
v4l2_m2m_buf_done(buf, VB2_BUF_STATE_ERROR); v4l2_m2m_buf_done(buf, VB2_BUF_STATE_ERROR);
......
...@@ -198,7 +198,6 @@ struct coda_ctx { ...@@ -198,7 +198,6 @@ struct coda_ctx {
int initialized; int initialized;
int streamon_out; int streamon_out;
int streamon_cap; int streamon_cap;
u32 isequence;
u32 qsequence; u32 qsequence;
u32 osequence; u32 osequence;
u32 sequence_offset; u32 sequence_offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment