rpicamsrc: Don't destroy the camera component on startup error
authorJan Schmidt <jan@centricular.com>
Wed, 20 Jun 2018 15:36:42 +0000 (15:36 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jul 2020 15:46:23 +0000 (16:46 +0100)
commit09d9ac2d2ead25a83f00d1bc21d686ffb64949b0
treec79595769510e05e64cc27dc77c87d95d5c27886
parent39a026760d26050f2f9060c0fc083241b932d9c4
rpicamsrc: Don't destroy the camera component on startup error

Just disable the camera component when it fails to start. The
most common reason is that the camera device is already in use,
and if we just disable the mmal component correct cleanup
will happen later
sys/rpicamsrc/RaspiCapture.c