Revision 4f54d924 libavdevice/v4l2.c

View differences:

libavdevice/v4l2.c
605 605
    if (!s->width && !s->height) {
606 606
        struct v4l2_format fmt;
607 607

  
608
        av_log(s1, AV_LOG_INFO, "Size value (%dx%d) unspecified, querying the device for the current settings\n",
609
               s->width, s->height);
608
        av_log(s1, AV_LOG_INFO, "Querying the device for the current frame size\n");
610 609
        fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
611 610
        if (ioctl(s->fd, VIDIOC_G_FMT, &fmt) < 0) {
612 611
            av_log(s1, AV_LOG_ERROR, "ioctl(VIDIOC_G_FMT): %s\n", strerror(errno));
......
614 613
        }
615 614
        s->width  = fmt.fmt.pix.width;
616 615
        s->height = fmt.fmt.pix.height;
617
        av_log(s1, AV_LOG_INFO, "Setting size to value %dx%d\n", s->width, s->height);
616
        av_log(s1, AV_LOG_INFO, "Setting frame size to %dx%d\n", s->width, s->height);
618 617
    }
619 618

  
620 619
    desired_format = device_try_init(s1, ap, &s->width, &s->height, &codec_id);

Also available in: Unified diff