changeset 21601:9bfe006bef97

support for -alang in dvdnav
author nicodvb
date Thu, 14 Dec 2006 22:12:28 +0000
parents ca8327c8d1fb
children ba96ae573d7f
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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