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

Rémi Denis-Courmont git at videolan.org
Wed Oct 21 17:45:03 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 29 10:13:58 2015 +0300| [a69f0715a2d9fd5322c5348b1fe75a65a9233ef8] | committer: Jean-Baptiste Kempf

v4l2: also print visible dimensions in the logs

(cherry picked from commit 4e5b9f75913c0d9c494f0cbe11c7ba39fd8ba2e7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 db8bfec..6e514dd 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