[FFmpeg-cvslog] avcodec/v4l2_m2m: use log_ctx variable consistently

Aman Gupta git at videolan.org
Tue Sep 3 01:26:53 EEST 2019


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Fri Aug 23 12:31:24 2019 -0700| [b6c6f56e385cb421bdfeab28f15346aa6892c682] | committer: Aman Gupta

avcodec/v4l2_m2m: use log_ctx variable consistently

Signed-off-by: Aman Gupta <aman at tmm1.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6c6f56e385cb421bdfeab28f15346aa6892c682
---

 libavcodec/v4l2_m2m.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c
index 82ff847cf7..0bd6cc0f92 100644
--- a/libavcodec/v4l2_m2m.c
+++ b/libavcodec/v4l2_m2m.c
@@ -254,13 +254,13 @@ int ff_v4l2_m2m_codec_full_reinit(V4L2m2mContext *s)
 
     ret = ff_v4l2_context_set_status(&s->output, VIDIOC_STREAMOFF);
     if (ret) {
-        av_log(s->avctx, AV_LOG_ERROR, "output VIDIOC_STREAMOFF\n");
+        av_log(log_ctx, AV_LOG_ERROR, "output VIDIOC_STREAMOFF\n");
         goto error;
     }
 
     ret = ff_v4l2_context_set_status(&s->capture, VIDIOC_STREAMOFF);
     if (ret) {
-            av_log(s->avctx, AV_LOG_ERROR, "capture VIDIOC_STREAMOFF\n");
+            av_log(log_ctx, AV_LOG_ERROR, "capture VIDIOC_STREAMOFF\n");
             goto error;
     }
 



More information about the ffmpeg-cvslog mailing list