HRESULT result;
- i_card_index = var_CreateGetInteger( p_demux, "sdi-card-index" );
+ i_card_index = var_InheritInteger( p_demux, "sdi-card-index" );
for( int i = 0; i <= i_card_index; ++i )
{
if( p_sys->p_card )
goto finish;
}
- psz_display_mode = var_CreateGetString( p_demux, "sdi-mode" );
+ psz_display_mode = var_InheritString( p_demux, "sdi-mode" );
if( !psz_display_mode || strlen( psz_display_mode ) == 0 || strlen( psz_display_mode ) > 4 ) {
msg_Err( p_demux, "Missing or invalid --sdi-mode string" );
ret = VLC_EGENERIC;
}
/* Set up audio. */
- p_sys->i_rate = var_CreateGetInteger( p_demux, "sdi-audio-rate" );
- p_sys->i_channels = var_CreateGetInteger( p_demux, "sdi-audio-channels" );
+ p_sys->i_rate = var_InheritInteger( p_demux, "sdi-audio-rate" );
+ p_sys->i_channels = var_InheritInteger( p_demux, "sdi-audio-channels" );
if( p_sys->i_rate > 0 && p_sys->i_channels > 0 )
{
result = p_sys->p_input->EnableAudioInput( p_sys->i_rate, bmdAudioSampleType16bitInteger, p_sys->i_channels );