summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/v4l2src_calls.c
diff options
context:
space:
mode:
authorRob Clark <rob@ti.com>2009-08-04 09:22:29 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-08-04 09:22:29 +0200
commit99e2ac121d7252aa858a8e0b2db0872d06ca226c (patch)
tree65ea038f9dd9f81507a67d156e217327ab256896 /sys/v4l2/v4l2src_calls.c
parentf19cfbda96d098362cc2a2565197cef347878549 (diff)
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.
Diffstat (limited to 'sys/v4l2/v4l2src_calls.c')
-rw-r--r--sys/v4l2/v4l2src_calls.c2
1 files changed, 1 insertions, 1 deletions
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;