]> git.sesse.net Git - vlc/commitdiff
Update Blackmagic DeckLink driver to the 7.9 SDK.
authorSteinar H. Gunderson <steinar+vlc@gunderson.no>
Sun, 26 Dec 2010 21:07:33 +0000 (21:07 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 26 Dec 2010 21:29:27 +0000 (22:29 +0100)
From 7.6 to 7.9, the method for setting video modes et al was changed,
in a way that is neither backwards nor forwards compatible. Even though
the 7.9 SDK includes some backwards-compatible headers for emulating
older APIs, they are unfortunately not a drop-in replacement, since they
add version numbers to struct names et al. Thus, there is no simple method
of maintaining source-level compatibility with both APIs (even though a
VLC compiled against the 7.6 SDK most likely would work if moved to a
machine with 7.9 driver), and given the choice, we should support the
newest API, as the older SDK isn't even downloadable anymore.

Thus, update unconditionally to the new API, and hope Blackmagic won't
change things too often in the future.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/decklink.cpp

index bacbb76ca76bc7d7c717ed20aaf3be4e3a30838b..1af30f855f4c6a490f62ff72a240f6a02cee773e 100644 (file)
@@ -371,7 +371,7 @@ static int Open( vlc_object_t *p_this )
         }
 
         msg_Dbg( p_demux, "Setting video input format to 0x%x", conn);
-        result = p_config->SetVideoInputFormat( conn );
+        result = p_config->SetInt( bmdDeckLinkConfigVideoInputConnection, conn );
         if( result != S_OK )
         {
             msg_Err( p_demux, "Failed to set video input connection" );
@@ -397,7 +397,7 @@ static int Open( vlc_object_t *p_this )
         }
 
         msg_Dbg( p_demux, "Setting audio input format to 0x%x", conn);
-        result = p_config->SetAudioInputFormat( conn );
+        result = p_config->SetInt( bmdDeckLinkConfigAudioInputConnection, conn );
         if( result != S_OK )
         {
             msg_Err( p_demux, "Failed to set audio input connection" );