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.
This commit is contained in:
Jan Schmidt 2017-11-14 15:01:21 +11:00 committed by Tim-Philipp Müller
parent b45e239128
commit cab6585378

View file

@ -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;