changeset 23767:e9d6eda05f00

added support for -alang and -slang with dvdnav:// streams
author nicodvb
date Sun, 15 Jul 2007 20:32:19 +0000
parents f0c2f9de85ba
children b555c8626c34
files mencoder.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);