Message ID | 20141215170948.1066aea9@recife.lan (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/videoinput.c b/src/videoinput.c index 084cc3f4c7ed..50c2b84b70de 100644 --- a/src/videoinput.c +++ b/src/videoinput.c @@ -849,8 +849,8 @@ void videoinput_set_input_num( videoinput_t *vidin, int inputnum ) videoinput_stop_capture_v4l2( vidin ); - if( !vidin->numinputs ) { - if( ioctl( vidin->grab_fd, VIDIOC_S_INPUT, &index ) < 0 ) { + if( vidin->numinputs ) { + if( ioctl( vidin->grab_fd, VIDIOC_S_INPUT, &index ) < 0 ) { fprintf( stderr, "videoinput: Card refuses to set its input.\n" "Please post a bug report to " PACKAGE_BUGREPORT "\n" "indicating your card, driver, and this error message: %s.\n",