media: vicodec: bugfix - call v4l2_m2m_buf_copy_metadata also if decoding fails
authorDafna Hirschfeld <dafna3@gmail.com>
Wed, 6 Mar 2019 21:13:28 +0000 (16:13 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 25 Mar 2019 17:41:38 +0000 (13:41 -0400)
commit8eead25cbdf911e17cff321903bd3397bc6ea22c
treed0057eacb5bd532031fb4df8ff851acb1b68dd99
parentf902796a51a849ad2fc6671817d7b60156dc7559
media: vicodec: bugfix - call v4l2_m2m_buf_copy_metadata also if decoding fails

The function 'v4l2_m2m_buf_copy_metadata' should
be called even if decoding/encoding ends with
status VB2_BUF_STATE_ERROR, so that the metadata
is copied from the source buffer to the dest buffer.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/vicodec-core.c