v4l2: attempt to fix infinite (for small version of infinite) loop

This commit is contained in:
Vincent Penquerc'h 2014-01-14 14:48:42 +00:00 committed by Nicolas Dufresne
parent 273f389d57
commit 4d0e1a4536

View 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");