diff options
| author | Kieran Bingham <[email protected]> | 2017-08-04 12:32:38 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-08-20 09:29:19 -0400 |
| commit | 372b2b0399fc99ae0d6f3b3c7f8997a061207305 (patch) | |
| tree | 97627c51e7dec13356c27fcfe3f05e91961e69a9 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 17fcd5f5d0cda2aa269942492b834a009c1cc928 (diff) | |
media: v4l: vsp1: Release buffers in start_streaming error path
Presently any received buffers are only released back to vb2 if
vsp1_video_stop_streaming() is called. If vsp1_video_start_streaming()
encounters an error, we will be warned by the vb2 handlers that buffers
have not been returned.
Move the buffer cleanup code to its own function to prevent duplication
and call from both vsp1_video_stop_streaming() and the error path in
vsp1_video_start_streaming().
Signed-off-by: Kieran Bingham <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions