fmt.fmt.pix.pixelformat = pixelformat;
fmt.fmt.pix.field = V4L2_FIELD_INTERLACED;
+/* FIXME: Disable TRY_FMT check, driver is not returning anything useful yet */
+#if 0
r = ioctl (fd, VIDIOC_TRY_FMT, &fmt);
if (r < 0 && errno == EINVAL) {
/* try again with progressive video */
S_FMT to probe */
if (errno != ENOTTY)
return FALSE;
+#endif
/* Only try S_FMT if we're not actively capturing yet, which we shouldn't
be, because we're still probing */
if (GST_V4L2CAMSRC_IS_ACTIVE (v4l2camsrc))
return FALSE;
+#if 0
GST_LOG_OBJECT (v4l2camsrc,
"Failed to probe size limit with VIDIOC_TRY_FMT, trying VIDIOC_S_FMT");
+#endif
fmt.fmt.pix.width = *width;
fmt.fmt.pix.height = *height;
if (r < 0)
return FALSE;
+#if 0
}
+#endif
GST_LOG_OBJECT (v4l2camsrc,
"got nearest size %dx%d", fmt.fmt.pix.width, fmt.fmt.pix.height);