]> git.sesse.net Git - mlt/commitdiff
log profile info when profile not compatible with decklink mode
authorDan Dennedy <dan@dennedy.org>
Sun, 30 Oct 2011 20:20:32 +0000 (13:20 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 30 Oct 2011 20:20:32 +0000 (13:20 -0700)
src/modules/decklink/producer_decklink.cpp

index 8c763a1a4089e9e01ccdbd997c90029ddba26cbc..5eadc1c75b37687d4ae355a67873997d165291f3 100644 (file)
@@ -170,7 +170,11 @@ public:
                        // Get the display mode
                        BMDDisplayMode displayMode = getDisplayMode( profile, m_vancLines );
                        if ( displayMode == (BMDDisplayMode) bmdDisplayModeNotSupported )
+                       {
+                               mlt_log_info( getProducer(), "profile = %dx%d %f fps %s\n", profile->width, profile->height,
+                                                         mlt_profile_fps( profile ), profile->progressive? "progressive" : "interlace" );
                                throw "Profile is not compatible with decklink.";
+                       }
 
                        // Determine if supports input format detection
 #ifdef WIN32