[vlc-commits] vout: decklink: add video mode selection debug info

Francois Cartegnie git at videolan.org
Thu Mar 24 13:55:40 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 23 09:06:09 2016 -0400| [035d6523d1c96819d459173e46e37697666f8429] | committer: Francois Cartegnie

vout: decklink: add video mode selection debug info

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

 modules/video_output/decklink.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index d3a123a..7bbfe50 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -421,7 +421,10 @@ static struct decklink_sys_t *OpenDecklink(vout_display_t *vd)
         int w, h;
         result = p_display_iterator->Next(&p_display_mode);
         if (result != S_OK)
+        {
+            msg_Dbg(vd, "No more modes");
             break;
+        }
 
         BMDDisplayMode mode_id = ntohl(p_display_mode->GetDisplayMode());
 
@@ -447,6 +450,8 @@ static struct decklink_sys_t *OpenDecklink(vout_display_t *vd)
         decklink_sys->i_width = w;
         decklink_sys->i_height = h;
 
+        msg_Dbg(vd, "Selected mode(%dx%d)", w, h);
+
         mode_id = htonl(mode_id);
 
         BMDVideoOutputFlags flags = bmdVideoOutputVANC;



More information about the vlc-commits mailing list