# HG changeset patch # User nicodvb # Date 1184531539 0 # Node ID e9d6eda05f0044e12611dd9b2d17be78fc5e9ddf # Parent f0c2f9de85bace0bbe080a78c011924aa5b34513 added support for -alang and -slang with dvdnav:// streams diff -r f0c2f9de85ba -r e9d6eda05f00 mencoder.c --- a/mencoder.c Sun Jul 15 17:56:06 2007 +0000 +++ b/mencoder.c Sun Jul 15 20:32:19 2007 +0000 @@ -580,6 +580,13 @@ } #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; if(stream_cache_size>0) stream_enable_cache(stream,stream_cache_size*1024,0,0);