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:
authorJan Schmidt <thaytan@noraisin.net>2017-11-14 07:01:21 +0300
committerTim-Philipp Müller <tim@centricular.com>2020-07-10 18:46:17 +0300
commitcab6585378ca0ade3729f5dc1b1cffbd31cd817d (patch)
treef69b07f6aef16c55eb11d23564d0d96f80b448a4 /sys
parentb45e23912810617d3f755d640acf475ab7f254d4 (diff)
rpicamsrc: Expand frame timeout from 100ms to 500ms
rpicamsrc on a normal rpi camera doesn't start up fast enough, and always fails the new 100ms timeout. A better solution might be to have a longer timeout for the first frame, but shorter once frames are running - but this quick fix will at least make rpicamsrc work again.
Diffstat (limited to 'sys')
-rw-r--r--sys/rpicamsrc/RaspiCapture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpicamsrc/RaspiCapture.c b/sys/rpicamsrc/RaspiCapture.c
index 1d899cf09..cae5cf61c 100644
--- a/sys/rpicamsrc/RaspiCapture.c
+++ b/sys/rpicamsrc/RaspiCapture.c
@@ -939,7 +939,7 @@ raspi_capture_fill_buffer(RASPIVID_STATE *state, GstBuffer **bufp,
/* FIXME: Use our own interruptible cond wait: */
- buffer = mmal_queue_timedwait(state->encoded_buffer_q, 100);
+ buffer = mmal_queue_timedwait(state->encoded_buffer_q, 500);
if (G_UNLIKELY(buffer == NULL)) {
return GST_FLOW_ERROR;