[FFmpeg-cvslog] avcodec/v4l2_m2m_enc: log errno on v4l2_set_ext_ctrl failures
Aman Gupta
git at videolan.org
Tue Sep 3 01:26:38 EEST 2019
ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Thu Aug 22 16:00:37 2019 -0700| [dc180cd81577d6c8bd561d804ce8f71711e4f1ac] | committer: Aman Gupta
avcodec/v4l2_m2m_enc: log errno on v4l2_set_ext_ctrl failures
Signed-off-by: Aman Gupta <aman at tmm1.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc180cd81577d6c8bd561d804ce8f71711e4f1ac
---
libavcodec/v4l2_m2m_enc.c | 4 ++--
1 file 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);
}
More information about the ffmpeg-cvslog
mailing list