mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 02:45:43 +00:00
Make -nosub work to disable subtitles even if -slang and dvd streams are used.
This still needs some additional checking that subtitle selection via dvdnav works. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29732 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
55cd87882c
commit
6fa7e2d867
@ -527,14 +527,14 @@ play_next_file:
|
||||
#ifdef CONFIG_DVDREAD
|
||||
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);
|
||||
if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DVDNAV
|
||||
if(stream->type==STREAMTYPE_DVDNAV){
|
||||
if(audio_lang && audio_id==-1) audio_id=mp_dvdnav_aid_from_lang(stream,audio_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=mp_dvdnav_sid_from_lang(stream,dvdsub_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=mp_dvdnav_sid_from_lang(stream,dvdsub_lang);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -3204,7 +3204,6 @@ if(stream_dump_type==5){
|
||||
if(mpctx->stream->type==STREAMTYPE_DVD){
|
||||
current_module="dvd lang->id";
|
||||
if(audio_id==-1) audio_id=dvd_aid_from_lang(mpctx->stream,audio_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=-1;
|
||||
if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(mpctx->stream,dvdsub_lang);
|
||||
// setup global sub numbering
|
||||
mpctx->global_sub_indices[SUB_SOURCE_DEMUX] = mpctx->global_sub_size; // the global # of the first demux-specific sub.
|
||||
@ -3217,7 +3216,6 @@ if(mpctx->stream->type==STREAMTYPE_DVD){
|
||||
if(mpctx->stream->type==STREAMTYPE_DVDNAV){
|
||||
current_module="dvdnav lang->id";
|
||||
if(audio_id==-1) audio_id=mp_dvdnav_aid_from_lang(mpctx->stream,audio_lang);
|
||||
if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=-1;
|
||||
if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=mp_dvdnav_sid_from_lang(mpctx->stream,dvdsub_lang);
|
||||
// setup global sub numbering
|
||||
mpctx->global_sub_indices[SUB_SOURCE_DEMUX] = mpctx->global_sub_size; // the global # of the first demux-specific sub.
|
||||
|
Loading…
Reference in New Issue
Block a user