From 99e2ac121d7252aa858a8e0b2db0872d06ca226c Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 4 Aug 2009 09:22:29 +0200 Subject: v4l2sink: change where buffers get dequeued It seems to cause strange occasional high latencies (almost 200ms) when dequeuing buffers from _buffer_alloc(). It is simpler and seems to work much better to dqbuf from the same thread that is queuing the next buffer. --- sys/v4l2/v4l2src_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/v4l2/v4l2src_calls.c') diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c index 75ed1dba..d8e365f9 100644 --- a/sys/v4l2/v4l2src_calls.c +++ b/sys/v4l2/v4l2src_calls.c @@ -68,7 +68,7 @@ gst_v4l2src_buffer_pool_activate (GstV4l2BufferPool * pool, { GstV4l2Buffer *buf; - while ((buf = gst_v4l2_buffer_pool_get (pool, FALSE)) != NULL) + while ((buf = gst_v4l2_buffer_pool_get (pool)) != NULL) if (!gst_v4l2_buffer_pool_qbuf (pool, buf)) goto queue_failed; -- cgit