Mercurial > mplayer.hg
diff mencoder.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 | c3775dbb8509 |
children | ef30e1505969 |
line wrap: on
line diff
--- a/mencoder.c Wed Aug 11 20:44:29 2010 +0000 +++ b/mencoder.c Wed Aug 11 20:59:03 2010 +0000 @@ -79,6 +79,7 @@ #include "osdep/priority.h" #include "osdep/timer.h" #include "stream/stream.h" +#include "stream/stream_bd.h" #ifdef CONFIG_DVDREAD #include "stream/stream_dvd.h" #endif @@ -708,6 +709,11 @@ mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_OpenedStream, file_format, (int)(stream->start_pos), (int)(stream->end_pos)); +if(stream->type==STREAMTYPE_BD){ + if(audio_id==-1) audio_id=bd_aid_from_lang(stream,audio_lang); + if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=bd_sid_from_lang(stream,dvdsub_lang); +} + #ifdef CONFIG_DVDREAD if(stream->type==STREAMTYPE_DVD){ if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);