v4l2-ctl: errors during streaming setup were ignored
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 30 Jan 2014 09:39:24 +0000 (10:39 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 30 Jan 2014 09:39:24 +0000 (10:39 +0100)
commitc0cd56208fd5b2244842ed31c36b7797ef912f7b
treeb5e02cfe97fd2797872761f36c55d606bb898110
parent83bc547ca382f96638318b616612b280090a245e
v4l2-ctl: errors during streaming setup were ignored

If an ioctl like VIDIOC_QBUF returned an error during the
setup of the streaming, then that was ignored which caused
the streaming loop to just wait for a buffer to arrive.

Report the error correctly and bail out if an error occurs.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-ctl/v4l2-ctl-streaming.cpp