From 40b96432a1e0e27d92c946ba901d8374a3e94f3d Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sun, 15 Jul 2007 20:32:19 +0000 Subject: [PATCH] added support for -alang and -slang with dvdnav:// streams git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23787 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mencoder.c b/mencoder.c index e1c7ef2823..c1dc9fcd40 100644 --- a/mencoder.c +++ b/mencoder.c @@ -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;