diff options
author | Aman Gupta <aman@tmm1.net> | 2019-08-22 16:00:37 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-09-02 15:06:32 -0700 |
commit | dc180cd81577d6c8bd561d804ce8f71711e4f1ac (patch) | |
tree | 85e1cf824c81c5b051dcda87decb3d077e4d6d6f /libavcodec | |
parent | 5e2436c6def5bca1c5ac91c71b10b7143b830c81 (diff) | |
download | ffmpeg-dc180cd81577d6c8bd561d804ce8f71711e4f1ac.tar.gz |
avcodec/v4l2_m2m_enc: log errno on v4l2_set_ext_ctrl failures
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/v4l2_m2m_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c index 636e1a96dd..8b17f3696c 100644 --- a/libavcodec/v4l2_m2m_enc.c +++ b/libavcodec/v4l2_m2m_enc.c @@ -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); } |