Commit 02c94f56 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* renamed audio-channel to audio-track so ppl don't confuse it with audio-channels

* renamed spu-channel to spu-track
* "Tracks settings" should be "Track settings"
parent c959f01d
......@@ -111,6 +111,7 @@ VLC_EXPORT( void, access2_Delete, ( access_t * ) );
static inline int access2_vaControl( access_t *p_access, int i_query, va_list args )
{
if( !p_access ) return VLC_EGENERIC;
return p_access->pf_control( p_access, i_query, args );
}
static inline int access2_Control( access_t *p_access, int i_query, ... )
......
......@@ -33,7 +33,7 @@ enum es_out_mode_e
{
ES_OUT_MODE_NONE, /* don't select anything */
ES_OUT_MODE_ALL, /* eg for stream output */
ES_OUT_MODE_AUTO, /* best audio/video or for input follow audio-channel, spu-channel */
ES_OUT_MODE_AUTO, /* best audio/video or for input follow audio-track, spu-track */
ES_OUT_MODE_PARTIAL /* select programs given after --programs */
};
......
......@@ -249,7 +249,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t *p_block )
if( !p_input ) return NULL;
if( var_Get( p_input, "spu-channel", &val ) )
if( var_Get( p_input, "spu-track", &val ) )
{
vlc_object_release( p_input );
return NULL;
......
......@@ -674,7 +674,7 @@ wxPanel *OpenDialog::DiscPanel( wxWindow* parent )
sizer->Add( disc_sub_label, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL );
sizer->Add( disc_sub, 1, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL );
disc_sub->SetRange( -1, 255 );
i_disc_sub = config_GetInt( p_intf, "spu-channel" );
i_disc_sub = config_GetInt( p_intf, "spu-track" );
disc_sub->SetValue( i_disc_sub );
sizer_row->Add( sizer, 0, wxEXPAND | wxALL, 5 );
......@@ -831,7 +831,7 @@ void OpenDialog::UpdateMRL( int i_access_method )
}
if( i_disc_sub >= 0 )
mrltemp += wxString::Format( wxT(" :spu-channel=%d"),
mrltemp += wxString::Format( wxT(" :spu-track=%d"),
i_disc_sub );
break;
......@@ -849,7 +849,7 @@ void OpenDialog::UpdateMRL( int i_access_method )
#endif
if( i_disc_sub >= 0 )
mrltemp += wxString::Format( wxT(" :spu-channel=%d"),
mrltemp += wxString::Format( wxT(" :spu-track=%d"),
i_disc_sub );
caching_name = wxT("vcd-caching");
......
......@@ -159,10 +159,10 @@ es_out_t *input_EsOutNew( input_thread_t *p_input )
p_sys->i_sub = 0;
/* */
var_Get( p_input, "audio-channel", &val );
var_Get( p_input, "audio-track", &val );
p_sys->i_audio_last = val.i_int;
var_Get( p_input, "spu-channel", &val );
var_Get( p_input, "spu-track", &val );
p_sys->i_sub_last = val.i_int;
var_Get( p_input, "audio-language", &val );
......
......@@ -397,8 +397,8 @@ void input_ConfigVarInit ( input_thread_t *p_input )
var_Create( p_input, "video", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Create( p_input, "audio", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Create( p_input, "audio-channel", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
var_Create( p_input, "spu-channel", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
var_Create( p_input, "audio-track", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
var_Create( p_input, "spu-track", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
var_Create( p_input, "audio-language", VLC_VAR_STRING|VLC_VAR_DOINHERIT );
var_Create( p_input, "spu-language", VLC_VAR_STRING|VLC_VAR_DOINHERIT );
......
......@@ -329,25 +329,25 @@ static char *ppsz_clock_descriptions[] =
"Only use this option if you want to read a multi-program stream " \
"(like DVB streams for example )" )
#define INPUT_CHAN_TEXT N_("Choose audio channel")
#define INPUT_CHAN_LONGTEXT N_( \
"Give the stream number of the audio channel you want to use" \
#define INPUT_AUDIOTRACK_TEXT N_("Choose audio track")
#define INPUT_AUDIOTRACK_LONGTEXT N_( \
"Give the stream number of the audio track you want to use" \
"(from 0 to n).")
#define INPUT_SUB_TEXT N_("Choose subtitles track")
#define INPUT_CHAN_LANG_TEXT N_("Choose audio language")
#define INPUT_CHAN_LANG_LONGTEXT N_( \
"Give the language of the audio channel you want to use " \
"(comma separted, two or tree letter country code).")
#define INPUT_SUB_LANG_TEXT N_("Choose subtitle track")
#define INPUT_SUB_LANG_LONGTEXT N_( \
"Give the language of the subtitle channel you want to use " \
"(comma separted, two or tree letter country code).")
#define INPUT_SUBTRACK_TEXT N_("Choose subtitles track")
#define INPUT_SUBTRACK_LONGTEXT N_( \
"Give the stream number of the subtitle track you want to use " \
"(from 0 to n).")
#define INPUT_AUDIOTRACK_LANG_TEXT N_("Choose audio language")
#define INPUT_AUDIOTRACK_LANG_LONGTEXT N_( \
"Give the language of the audio track you want to use " \
"(comma separted, two or tree letter country code).")
#define INPUT_SUB_LONGTEXT N_( \
"Give the stream number of the subtitle channel you want to use " \
"(from 0 to n).")
#define INPUT_SUBTRACK_LANG_TEXT N_("Choose subtitle track")
#define INPUT_SUBTRACK_LANG_LONGTEXT N_( \
"Give the language of the subtitle track you want to use " \
"(comma separted, two or tree letter country code).")
#define INPUT_REPEAT_TEXT N_("Input repetitions")
#define INPUT_REPEAT_LONGTEXT N_("Number of time the same input will be " \
......@@ -988,19 +988,19 @@ vlc_module_begin();
set_subcategory( SUBCAT_INPUT_SCODEC );
set_subcategory( SUBCAT_INPUT_ADVANCED );
set_section( N_( "Tracks settings" ), NULL );
set_section( N_( "Track settings" ), NULL );
add_integer( "program", 0, NULL,
INPUT_PROGRAM_TEXT, INPUT_PROGRAM_LONGTEXT, VLC_TRUE );
add_string( "programs", "", NULL,
INPUT_PROGRAMS_TEXT, INPUT_PROGRAMS_LONGTEXT, VLC_FALSE );
add_integer( "audio-channel", -1, NULL,
INPUT_CHAN_TEXT, INPUT_CHAN_LONGTEXT, VLC_FALSE );
add_integer( "spu-channel", -1, NULL,
INPUT_SUB_TEXT, INPUT_SUB_LONGTEXT, VLC_FALSE );
add_integer( "audio-track", -1, NULL,
INPUT_AUDIOTRACK_TEXT, INPUT_AUDIOTRACK_LONGTEXT, VLC_FALSE );
add_integer( "spu-track", -1, NULL,
INPUT_SUBTRACK_TEXT, INPUT_SUBTRACK_LONGTEXT, VLC_FALSE );
add_string( "audio-language", "", NULL,
INPUT_CHAN_LANG_TEXT, INPUT_CHAN_LANG_LONGTEXT, VLC_FALSE );
INPUT_AUDIOTRACK_LANG_TEXT, INPUT_AUDIOTRACK_LANG_LONGTEXT, VLC_FALSE );
add_string( "spu-language", "", NULL,
INPUT_SUB_LANG_TEXT, INPUT_SUB_LANG_LONGTEXT, VLC_FALSE );
INPUT_SUBTRACK_LANG_TEXT, INPUT_SUBTRACK_LANG_LONGTEXT, VLC_FALSE );
set_section( N_( "Playback control" ) , NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment