v4l2: only set framerate for capture for now
This commit is contained in:
parent
9f4cf3be58
commit
50ce1807f0
@ -2164,6 +2164,7 @@ gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps)
|
||||
if (v4l2_ioctl (fd, VIDIOC_G_PARM, streamparm) < 0)
|
||||
goto get_parm_failed;
|
||||
|
||||
if (v4l2object->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
|
||||
GST_DEBUG_OBJECT (v4l2object->element, "Got framerate: %u/%u",
|
||||
streamparm->parm.capture.timeperframe.denominator,
|
||||
streamparm->parm.capture.timeperframe.numerator);
|
||||
@ -2196,6 +2197,7 @@ gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps)
|
||||
GST_INFO_OBJECT (v4l2object->element, "Set framerate to %u/%u", fps_n,
|
||||
fps_d);
|
||||
}
|
||||
}
|
||||
|
||||
done:
|
||||
/* if we have a framerate pre-calculate duration */
|
||||
|
Loading…
x
Reference in New Issue
Block a user