changeset 5425:f3a451b6f794

-alang sig11 when playing avis fixed - 10l
author arpi
date Sun, 31 Mar 2002 19:20:01 +0000
parents e6d180ceb1ef
children d72dc493c5d3
files mplayer.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Mar 31 18:29:09 2002 +0000
+++ b/mplayer.c	Sun Mar 31 19:20:01 2002 +0000
@@ -998,10 +998,12 @@
 }
 
 #ifdef USE_DVDREAD
-current_module="dvd lang->id";
-if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
-if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
-current_module=NULL;
+if(stream->type==STREAMTYPE_DVD){
+  current_module="dvd lang->id";
+  if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
+  if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
+  current_module=NULL;
+}
 #endif
 
 // CACHE2: initial prefill: 20%  later: 5%  (should be set by -cacheopts)