X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fdecklink.cpp;h=a8f3a71dc12b3bb6627135c629385e5fa10af9bf;hb=c60652e38ac6afd74bd8225e9dae5406f13aaa4f;hp=60e8b831a41532c87f71e973d10b19b005d87e2f;hpb=c8abb446b484d6be1895fce49d3d242142ae344b;p=vlc diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp index 60e8b831a4..a8f3a71dc1 100644 --- a/modules/access/decklink.cpp +++ b/modules/access/decklink.cpp @@ -79,6 +79,13 @@ static void Close( vlc_object_t * ); "composite, svideo. " \ "Leave blank for card default." ) +static const char *const ppsz_videoconns[] = { + "sdi", "hdmi", "opticalsdi", "component", "composite", "svideo" +}; +static const char *const ppsz_videoconns_text[] = { + N_("SDI"), N_("HDMI"), N_("Optical SDI"), N_("Component"), N_("Composite"), N_("S-video") +}; + #define ASPECT_RATIO_TEXT N_("Aspect ratio") #define ASPECT_RATIO_LONGTEXT N_( \ "Aspect ratio (4:3, 16:9). Default assumes square pixels." ) @@ -103,6 +110,7 @@ vlc_module_begin () CHANNELS_TEXT, CHANNELS_LONGTEXT, true ) add_string( "decklink-video-connection", 0, NULL, VIDEO_CONNECTION_TEXT, VIDEO_CONNECTION_LONGTEXT, true ) + change_string_list( ppsz_videoconns, ppsz_videoconns_text, 0 ) add_string( "decklink-aspect-ratio", NULL, NULL, ASPECT_RATIO_TEXT, ASPECT_RATIO_LONGTEXT, true ) @@ -346,7 +354,7 @@ static int Open( vlc_object_t *p_this ) goto finish; } - psz_video_connection = var_CreateGetNonEmptyString( p_demux, "decklink-video-connection" ); + psz_video_connection = var_InheritString( p_demux, "decklink-video-connection" ); if( psz_video_connection ) { BMDVideoConnection conn;