rpicamsrc: RaspiCapture: use mmal_queue_timedwait() for buffer queueing
authorGeorgii Staroselskii <georgii.staroselskii@emlid.com>
Wed, 8 Nov 2017 09:14:35 +0000 (09:14 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 10 Jul 2020 15:46:15 +0000 (16:46 +0100)
commitb45e23912810617d3f755d640acf475ab7f254d4
tree7868b8e88b379007757188312de763e169bc5d37
parent149fdee7fb243e50f02f1c444c921d920a088724
rpicamsrc: RaspiCapture: use mmal_queue_timedwait() for buffer queueing

If an external camera was disconnected, there were no feedback in an
application. It seems reasonable to wait on mmal_queue no longer than
100ms. If it's stuck we just return a FLOW_ERROR and let the application
decide what to do later.
sys/rpicamsrc/RaspiCapture.c