mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-27 09:43:34 +00:00
avcodec/v4l2_m2m_enc: log errno on v4l2_set_ext_ctrl failures
Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
5e2436c6de
commit
dc180cd815
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user