summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@gmail.com>2022-06-20 18:55:14 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-17 11:05:13 +0100
commit4af46bcc49152fc8a68a6bc5b5a2ca8a3c6db439 (patch)
tree068f6172c6689acbf517fcb773b661a030717e7c /tools/perf/scripts/python/export-to-postgresql.py
parent1f258653e16c24489c4e468564e45348c8b7674b (diff)
media: cedrus: Add error handling for failed setup
During decoding setup stage for complex codecs like HEVC driver can detect inconsistent values in controls or some other task, like allocating memory, can fail. Currently setup stage has no way of signalling error. Change return type of setup callback to int and if returned value is not zero, skip decoding and finish job immediately with error flag. While currently there is only one place when setup can fail, it's expected that there will be more such cases in the future, when HEVC decoding is improved. Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions