v4l2: attempt to fix infinite (for small version of infinite) loop
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 14 Jan 2014 14:48:42 +0000 (14:48 +0000)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Sat, 29 Mar 2014 21:09:02 +0000 (17:09 -0400)
sys/v4l2/v4l2_calls.c

index a0696b8..186e780 100644 (file)
@@ -294,6 +294,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
         if (n < V4L2_CID_PRIVATE_BASE) {
           GST_DEBUG_OBJECT (e, "skipping control %08x", n);
           /* continue so that we also check private controls */
+          n = V4L2_CID_PRIVATE_BASE - 1;
           continue;
         } else {
           GST_DEBUG_OBJECT (e, "controls finished");