mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 06:04:48 -04:00
media: allegro: fail encoding only on actual errors
Only negative values are actual errors and positive values are used for warnings. Warnings should not fail the encoding process. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
04d2a11018
commit
b646f99642
@@ -1536,7 +1536,7 @@ static void allegro_channel_finish_frame(struct allegro_channel *channel,
|
||||
dst_buf = v4l2_m2m_dst_buf_remove(channel->fh.m2m_ctx);
|
||||
dst_buf->sequence = channel->csequence++;
|
||||
|
||||
if (msg->error_code) {
|
||||
if (msg->error_code & AL_ERROR) {
|
||||
v4l2_err(&dev->v4l2_dev,
|
||||
"channel %d: failed to encode frame: %s (%x)\n",
|
||||
channel->mcu_channel_id,
|
||||
|
||||
Reference in New Issue
Block a user