Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGeorgii Staroselskii <georgii.staroselskii@emlid.com>2017-11-07 18:14:06 +0300
committerTim-Philipp Müller <tim@centricular.com>2020-07-10 18:46:13 +0300
commit149fdee7fb243e50f02f1c444c921d920a088724 (patch)
tree199f0cfa08ec29cd5603e7a90c68d768b151449c /sys
parented893592eaa5493fa3b3b92e7255b209da1672ab (diff)
rpicamsrc: RaspiCapture: handle MMAL_EVENT_ERROR
Diffstat (limited to 'sys')
-rw-r--r--sys/rpicamsrc/RaspiCapture.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/rpicamsrc/RaspiCapture.c b/sys/rpicamsrc/RaspiCapture.c
index d0616c5f8..cdc6ce21a 100644
--- a/sys/rpicamsrc/RaspiCapture.c
+++ b/sys/rpicamsrc/RaspiCapture.c
@@ -752,8 +752,9 @@ static void camera_control_callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buf
break;
}
}
- else
- {
+ else if (buffer->cmd == MMAL_EVENT_ERROR) {
+ vcos_log_error("Camera control callback got an error");
+ } else {
vcos_log_error("Received unexpected camera control callback event, 0x%08x", buffer->cmd);
}