mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
-alang/-slang options (audio/sub selection by language code)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3755 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6c60debbb5
commit
f88ce3d382
@ -235,6 +235,11 @@ struct config conf[]={
|
||||
{"lircconf", &lirc_configfile, CONF_TYPE_STRING, 0, 0, 0},
|
||||
#endif
|
||||
|
||||
#ifdef USE_DVDREAD
|
||||
{"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0},
|
||||
{"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0},
|
||||
#endif
|
||||
|
||||
{"gui", &use_gui, CONF_TYPE_FLAG, 0, 0, 1},
|
||||
{"nogui", &use_gui, CONF_TYPE_FLAG, 0, 1, 0},
|
||||
|
||||
|
@ -189,6 +189,8 @@ int allow_dshow=0;
|
||||
int audio_id=-1;
|
||||
int video_id=-1;
|
||||
int dvdsub_id=-1;
|
||||
char* audio_lang=NULL;
|
||||
char* dvdsub_lang=NULL;
|
||||
static int vcd_track=0;
|
||||
|
||||
// cache2:
|
||||
@ -851,8 +853,11 @@ if(stream_dump_type==5){
|
||||
exit_player(MSGTR_Exit_eof);
|
||||
}
|
||||
|
||||
|
||||
#ifdef USE_DVDREAD
|
||||
current_module="dvd lang->id";
|
||||
if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
|
||||
|
||||
current_module="spudec";
|
||||
vo_spudec=spudec_new(stream->priv);
|
||||
if (vo_spudec!=NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user