When the vivid module used to test buffer importing is not loaded, the
test correctly bails out, but during the clean up procedure tries to
access the video_ field, which, if not correctly initialized to
nullptr contains random values and accessing it causes a segfault.
Fix this by initializing video_ field to nullptr to make sure it is
properly handled in cleanup().
Fixes:
|
||
---|---|---|
.. | ||
buffer_import.cpp | ||
camera_test.cpp | ||
camera_test.h | ||
capture.cpp | ||
configuration_default.cpp | ||
configuration_set.cpp | ||
meson.build | ||
statemachine.cpp |