]> git.sesse.net Git - mlt/commitdiff
Fix mlt_profile to DeckLink DisplayMode matching.
authorDan Dennedy <dan@dennedy.org>
Tue, 27 Nov 2012 17:18:25 +0000 (09:18 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 27 Nov 2012 17:18:25 +0000 (09:18 -0800)
src/modules/decklink/consumer_decklink.cpp
src/modules/decklink/producer_decklink.cpp

index 9df9a2612290243a8dfa5dac0c7e9fdad053a7c3..f8ef0cde01214065ce981a699f22294a982378c8 100644 (file)
@@ -75,7 +75,7 @@ private:
                                mlt_log_verbose( getConsumer(), "BMD mode %dx%d %.3f fps prog %d\n", m_width, m_height, m_fps, p );
 
                                if ( m_width == profile->width && p == profile->progressive
-                                        && m_fps == mlt_profile_fps( profile )
+                                        && (int) m_fps == (int) mlt_profile_fps( profile )
                                         && ( m_height == profile->height || ( m_height == 486 && profile->height == 480 ) ) )
                                        result = mode;
                                else
index 6a8492be057f82af50ee784afae04d17506855a0..51456120e1f9ba774b4adc50a941c7dfb725e41a 100644 (file)
@@ -67,7 +67,7 @@ private:
 
                                if ( width == profile->width && p == profile->progressive
                                         && ( height + vancLines == profile->height || ( height == 486 && profile->height == 480 + vancLines ) )
-                                        && fps == mlt_profile_fps( profile ) )
+                                        && (int) fps == (int) mlt_profile_fps( profile ) )
                                        result = mode->GetDisplayMode();
                                SAFE_RELEASE( mode );
                        }