]> git.sesse.net Git - vlc/commitdiff
In the decklink module, add a string list for the audio connection alternatives.
authorSteinar H. Gunderson <steinar+vlc@gunderson.no>
Sat, 12 Feb 2011 16:51:30 +0000 (17:51 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Feb 2011 17:26:26 +0000 (18:26 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/decklink.cpp

index 6b97246465c5eaf7693ce034f12c838567d8661f..ac69c19ee218a86f1ee015e70bfd634e6b3299e7 100644 (file)
@@ -86,6 +86,13 @@ static const char *const ppsz_videoconns_text[] = {
     N_("SDI"), N_("HDMI"), N_("Optical SDI"), N_("Component"), N_("Composite"), N_("S-video")
 };
 
+static const char *const ppsz_audioconns[] = {
+    "embedded", "aesebu", "analog"
+};
+static const char *const ppsz_audioconns_text[] = {
+    N_("Embedded"), N_("AES/EBU"), N_("Analog")
+};
+
 #define ASPECT_RATIO_TEXT N_("Aspect ratio")
 #define ASPECT_RATIO_LONGTEXT N_( \
     "Aspect ratio (4:3, 16:9). Default assumes square pixels." )
@@ -104,6 +111,7 @@ vlc_module_begin ()
                  CACHING_TEXT, CACHING_LONGTEXT, true )
     add_string( "decklink-audio-connection", 0,
                  AUDIO_CONNECTION_TEXT, AUDIO_CONNECTION_LONGTEXT, true )
+        change_string_list( ppsz_audioconns, ppsz_audioconns_text, 0 )
     add_integer( "decklink-audio-rate", 48000,
                  RATE_TEXT, RATE_LONGTEXT, true )
     add_integer( "decklink-audio-channels", 2,