Infrequently, opening the v4l2 device (typically a webcam) fails for no apparent reason.
The second attempt works, so retry the operation a number of times if it fails the first time.