Commit 4d0e1a45 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Nicolas Dufresne
Browse files

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

parent 273f389d
...@@ -294,6 +294,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object) ...@@ -294,6 +294,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
if (n < V4L2_CID_PRIVATE_BASE) { if (n < V4L2_CID_PRIVATE_BASE) {
GST_DEBUG_OBJECT (e, "skipping control %08x", n); GST_DEBUG_OBJECT (e, "skipping control %08x", n);
/* continue so that we also check private controls */ /* continue so that we also check private controls */
n = V4L2_CID_PRIVATE_BASE - 1;
continue; continue;
} else { } else {
GST_DEBUG_OBJECT (e, "controls finished"); GST_DEBUG_OBJECT (e, "controls finished");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment