summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavdevice/v4l2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 365bacd..15e1258 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -740,6 +740,13 @@ static int v4l2_set_parameters(AVFormatContext *ctx)
return ret;
}
+ if (v4l2_ioctl(s->fd, VIDIOC_G_PARM, &streamparm) < 0) {
+ ret = AVERROR(errno);
+ av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_G_PARM): %s\n",
+ av_err2str(ret));
+ return ret;
+ }
+
if (framerate_q.num != tpf->denominator ||
framerate_q.den != tpf->numerator) {
av_log(ctx, AV_LOG_INFO,
OpenPOWER on IntegriCloud