Mercurial > mplayer.hg
diff mplayer.c @ 31877:e30fe0cb79cd
Add incomplete clipinf reading support to display audio
and subtitle languages and make -alang and -slang work.
author | reimar |
---|---|
date | Wed, 11 Aug 2010 20:59:03 +0000 |
parents | 5edb6679ccad |
children | ef30e1505969 |
line wrap: on
line diff
--- a/mplayer.c Wed Aug 11 20:44:29 2010 +0000 +++ b/mplayer.c Wed Aug 11 20:59:03 2010 +0000 @@ -92,6 +92,7 @@ #include "libvo/video_out.h" #include "stream/cache2.h" #include "stream/stream.h" +#include "stream/stream_bd.h" #include "stream/stream_dvdnav.h" #include "stream/stream_radio.h" #include "stream/tv.h" @@ -3343,6 +3344,11 @@ exit_player_with_rc(EXIT_EOF, 0); } +if(mpctx->stream->type==STREAMTYPE_BD){ + if(audio_id==-1) audio_id=bd_aid_from_lang(mpctx->stream,audio_lang); + if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=bd_sid_from_lang(mpctx->stream,dvdsub_lang); +} + #ifdef CONFIG_DVDREAD if(mpctx->stream->type==STREAMTYPE_DVD){ current_module="dvd lang->id";