diff options
author | Hans Verkuil <[email protected]> | 2024-10-17 17:09:23 +0200 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2024-10-28 09:19:47 +0100 |
commit | 1d8aaa86a32a76021f6c37fff9f7c3a26f48dae7 (patch) | |
tree | a96fed3b3b6b3a5ebbe29cb676f83d9881324654 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | c9ec6f1736363b2b2bb4e266997389740f628441 (diff) |
media: videobuf2-core: update vb2_thread if wait_finish/prepare are NULL
The vb2_thread is used for DVB support. This will queue and dequeue buffers
automatically.
It calls wait_finish/prepare around vb2_core_dqbuf() and vb2_core_qbuf(),
but that assumes all drivers have these ops set. But that will change
due to commit 88785982a19d ("media: vb2: use lock if wait_prepare/finish
are NULL").
So instead just check if the callback is available, and if not, use
q->lock, just as __vb2_wait_for_done_vb() does.
Signed-off-by: Hans Verkuil <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions