Revision fd867ffd

View differences:

libavdevice/v4l.c
186 186
        s->frame_format = pict.palette;
187 187

  
188 188
        val = 1;
189
        ioctl(video_fd, VIDIOCCAPTURE, &val);
189
        if (ioctl(video_fd, VIDIOCCAPTURE, &val) < 0) {
190
            av_log(s1, AV_LOG_ERROR, "VIDIOCCAPTURE: %s\n", strerror(errno));
191
            goto fail;
192
        }
190 193

  
191 194
        s->time_frame = av_gettime() * s->time_base.den / s->time_base.num;
192 195
        s->use_mmap = 0;

Also available in: Unified diff