diff options
author | Hans Verkuil <[email protected]> | 2018-11-28 03:37:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2018-12-03 15:00:50 -0500 |
commit | 04990215dec43c424daff00d1f622167b8aafd1f (patch) | |
tree | 18baf2493a0233ed910fc48ce55f191e4a5c983b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 53e9d838275d9a2a5736d788f84814c64cbf94b0 (diff) |
media: vb2: don't call __vb2_queue_cancel if vb2_start_streaming failed
vb2_start_streaming() already rolls back the buffers, so there is no
need to call __vb2_queue_cancel(). Especially since __vb2_queue_cancel()
does too much, such as zeroing the q->queued_count value, causing vb2
to think that no buffers have been queued.
It appears that this call to __vb2_queue_cancel() is a left-over from
before commit b3379c6201bb3.
Fixes: b3379c6201bb3 ('vb2: only call start_streaming if sufficient buffers are queued')
Signed-off-by: Hans Verkuil <[email protected]>
Cc: <[email protected]> # for v4.16 and up
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions