Skip to content
Snippets Groups Projects
Commit 01c191c5 authored by Benjamin Gaignard's avatar Benjamin Gaignard
Browse files

media: dvb-core: Use vb2_get_buffer() instead of directly access to buffers array


Use vb2_get_buffer() instead of directly access to vb2_buffer buffer array.
This could allow to change the type bufs[] field of vb2_buffer structure if
needed.
After each call to vb2_get_buffer() we need to be sure that we get
a valid pointer so check the return value of all of them.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@collabora.com>
parent 9a1bfda0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment