struct v4l2_streamparm *streamparm;
enum v4l2_field field;
guint32 pixelformat;
- gint ret;
gint width, height;
gboolean interlaced;
struct v4l2_fmtdesc *fmtdesc;
memset (streamparm, 0x00, sizeof (struct v4l2_streamparm));
streamparm->type = v4l2object->type;
- if ((ret = v4l2_ioctl (fd, VIDIOC_G_PARM, streamparm)) < 0)
+ if (v4l2_ioctl (fd, VIDIOC_G_PARM, streamparm) < 0)
goto get_parm_failed;
if (v4l2object->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
get_parm_failed:
{
/* it's possible that this call is not supported */
- if (ret != EINVAL) {
+ if (errno != EINVAL) {
GST_ELEMENT_WARNING (v4l2object->element, RESOURCE, SETTINGS,
(_("Could not get parameters on device '%s'"),
v4l2object->videodev), GST_ERROR_SYSTEM);