BUGFIX endless loop without exit when open device fails

Signed-off-by: Benjamin Reh <breh@orb.iwr.uni-heidelberg.de>
Merge orb.iwr.uni-heidelberg.de:~/src/camjpeg

Conflicts:
	capture.cpp

Signed-off-by: Benjamin Reh <ich@benjaminreh.de>