[vlc-commits] v4l2: also print visible dimensions in the logs

Rémi Denis-Courmont git at videolan.org
Mon Jun 29 09:14:44 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 29 10:13:58 2015 +0300| [4e5b9f75913c0d9c494f0cbe11c7ba39fd8ba2e7] | committer: Rémi Denis-Courmont

v4l2: also print visible dimensions in the logs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e5b9f75913c0d9c494f0cbe11c7ba39fd8ba2e7
---

 modules/access/v4l2/demux.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/access/v4l2/demux.c b/modules/access/v4l2/demux.c
index 833f6a6..7da2079 100644
--- a/modules/access/v4l2/demux.c
+++ b/modules/access/v4l2/demux.c
@@ -404,7 +404,9 @@ static int InitVideo (demux_t *demux, int fd, uint32_t caps)
     es_fmt.video.i_frame_rate_base = parm.parm.capture.timeperframe.numerator;
     GetAR (fd, &es_fmt.video.i_sar_num, &es_fmt.video.i_sar_den);
 
-    msg_Dbg (demux, "added new video ES %4.4s %ux%u", (char *)&es_fmt.i_codec,
+    msg_Dbg (demux, "added new video ES %4.4s %ux%u (%ux%u)",
+             (char *)&es_fmt.i_codec,
+             es_fmt.video.i_visible_width, es_fmt.video.i_visible_height,
              es_fmt.video.i_width, es_fmt.video.i_height);
     msg_Dbg (demux, " frame rate: %u/%u", es_fmt.video.i_frame_rate,
              es_fmt.video.i_frame_rate_base);



More information about the vlc-commits mailing list