# HG changeset patch # User nicodvb # Date 1166134348 0 # Node ID 9bfe006bef9792123ce59e2a1e802fc28ccaf648 # Parent ca8327c8d1fb7e35417f0a4d2ac90d808d06d324 support for -alang in dvdnav diff -r ca8327c8d1fb -r 9bfe006bef97 mplayer.c --- a/mplayer.c Thu Dec 14 22:11:43 2006 +0000 +++ b/mplayer.c Thu Dec 14 22:12:28 2006 +0000 @@ -4190,6 +4190,7 @@ #ifdef USE_DVDNAV if(stream->type==STREAMTYPE_DVDNAV){ current_module="dvdnav lang->id"; + if(audio_id==-1) audio_id=dvdnav_aid_from_lang(stream,audio_lang); if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=-1; if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvdnav_sid_from_lang(stream,dvdsub_lang); // setup global sub numbering