mirror of https://github.com/mpv-player/mpv
added support for -alang and -slang with dvdnav:// streams
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23787 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
dfae0dfa58
commit
40b96432a1
|
@ -578,6 +578,13 @@ if(stream->type==STREAMTYPE_DVD){
|
|||
if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_DVDNAV
|
||||
if(stream->type==STREAMTYPE_DVDNAV){
|
||||
if(audio_lang && audio_id==-1) audio_id=dvdnav_aid_from_lang(stream,audio_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvdnav_sid_from_lang(stream,dvdsub_lang);
|
||||
}
|
||||
#endif
|
||||
|
||||
stream->start_pos+=seek_to_byte;
|
||||
|
|
Loading…
Reference in New Issue