Commit dc180cd8 authored by Aman Gupta's avatar Aman Gupta

avcodec/v4l2_m2m_enc: log errno on v4l2_set_ext_ctrl failures

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent 5e2436c6
......@@ -58,10 +58,10 @@ static inline void v4l2_set_ext_ctrl(V4L2m2mContext *s, unsigned int id, signed
/* set ctrl*/
ctrl.value = value;
ctrl.id = id ;
ctrl.id = id;
if (ioctl(s->fd, VIDIOC_S_EXT_CTRLS, &ctrls) < 0)
av_log(s->avctx, AV_LOG_WARNING, "Failed to set %s\n", name);
av_log(s->avctx, AV_LOG_WARNING, "Failed to set %s: %s\n", name, strerror(errno));
else
av_log(s->avctx, AV_LOG_DEBUG, "Encoder: %s = %d\n", name, value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment