From cab6585378ca0ade3729f5dc1b1cffbd31cd817d Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 14 Nov 2017 15:01:21 +1100 Subject: 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. --- sys/rpicamsrc/RaspiCapture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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; -- cgit v1.2.3