diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2018-08-28 15:30:08 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-08-31 00:45:33 +0300 |
commit | 8bee8cdb3c98c6489bd525a5588e391f8ae3aaa1 (patch) | |
tree | 9836afa7d5353e63cad38fbf0451d28dfb2253ab /e62d871295d22653caa52a1cbe9161e1256a860c | |
parent | ed050498a2d2aa1e00b3cb4bbeb0d72a96cc9009 (diff) |
main: Initialise stream object to NULL
If the capture device fails to load the default cleanup path will be
taken. This error path relies on objects either existing or being set
to NULL.
Ensure that the stream pointer is initialised to prevent segfaults on
the error path.
Fixes: 1b8f9204db68 ("stream: Use abstract video sources")
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reiewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'e62d871295d22653caa52a1cbe9161e1256a860c')
0 files changed, 0 insertions, 0 deletions