[vlc-devel] Blackmagic Decklink configuration, use WriteConfigurationToPreferences()

Ed Groth ed at boxpopuli.com
Fri Jan 7 01:11:11 CET 2011


Hello,

I've noticed my decklink card will not change audio/video connections
unless we save the changed settings.  Without this, it uses whatever
was set in the BlackmagicControlPanel program.

This problem be specific to my version of the driver / SDK / card, but
this patch fixes it for me.  If anyone else is using the decklink
card, want to test and see if this works for you as well?

Thanks,

  Ed


diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp
index f8b7812..9f3add3 100644
--- a/modules/access/decklink.cpp
+++ b/modules/access/decklink.cpp
@@ -532,10 +532,13 @@ static int Open( vlc_object_t *p_this )
             msg_Err( p_demux, "Failed to enable audio input" );
             goto finish;
         }
     }

+    /* Save our settings. */
+    p_config->WriteConfigurationToPreferences();
+
     p_sys->p_delegate = new DeckLinkCaptureDelegate( p_demux );
     p_sys->p_input->SetCallback( p_sys->p_delegate );

     result = p_sys->p_input->StartStreams();
     if( result != S_OK )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0000-Decklink-Add-Call-To-WriteConfigurationToPreferences.patch
Type: text/x-diff
Size: 618 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110106/d990da94/attachment.patch>


More information about the vlc-devel mailing list