diff options
author | Aman Gupta <aman@tmm1.net> | 2019-08-22 21:03:31 +0300 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-09-03 01:12:20 +0300 |
commit | e8c5ce1acb8bb7ad09dbe03c6ccb48874c2f9606 (patch) | |
tree | 7df7d1e0c7d71c525f19016607c28885c8948ca6 /libavcodec/v4l2_m2m.c | |
parent | c95b1277332a818ab177978a248a1a7133550bcb (diff) |
avcodec/v4l2_m2m: log planar mode used by driver
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavcodec/v4l2_m2m.c')
-rw-r--r-- | libavcodec/v4l2_m2m.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c index 626ccb2f7b..82ff847cf7 100644 --- a/libavcodec/v4l2_m2m.c +++ b/libavcodec/v4l2_m2m.c @@ -76,7 +76,9 @@ static int v4l2_prepare_contexts(V4L2m2mContext* s) if (ret < 0) return ret; - av_log(s->avctx, AV_LOG_INFO, "driver '%s' on card '%s'\n", cap.driver, cap.card); + av_log(s->avctx, AV_LOG_INFO, "driver '%s' on card '%s' in %s mode\n", cap.driver, cap.card, + v4l2_mplane_video(&cap) ? "mplane" : + v4l2_splane_video(&cap) ? "splane" : "unknown"); if (v4l2_mplane_video(&cap)) { s->capture.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; |