diff options
| author | William Towle <william.towle@codethink.co.uk> | 2015-01-26 14:08:40 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-02 10:42:48 -0200 |
| commit | e99f0115e56ce4c4cda269cd21b25f7e14fa548f (patch) | |
| tree | 9a7441a634cda46f4bbdc9217f19334c5a61471b /tools/lib/python | |
| parent | 4abec46833c923c1be8dfee1d4eb1fff12cceb21 (diff) | |
| download | linux-e99f0115e56ce4c4cda269cd21b25f7e14fa548f.tar.gz linux-e99f0115e56ce4c4cda269cd21b25f7e14fa548f.zip | |
[media] rcar_vin: move buffer management to .stop_streaming handler
This commit moves the "buffer in use" logic from the .buf_cleanup
handler into .stop_streaming, based on advice that this is its
proper logical home.
By ensuring the list of pointers in priv->queue_buf[] is managed
as soon as possible, we avoid warnings concerning buffers in ACTIVE
state when the system cleans up after streaming stops. This fixes a
problem with modification of buffers after their content has been
cleared for passing to userspace.
After the refactoring, the buf_init and buf_cleanup functions were
found to contain only initialisation/release steps as are carried out
elsewhere if omitted; these functions and references were removed.
Signed-off-by: William Towle <william.towle@codethink.co.uk>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
