[MPlayer-cvslog] CVS: main mplayer.c,1.903,1.904

Nico Sabbi CVS syncmail at mplayerhq.hu
Fri Jan 13 21:07:02 CET 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv8971

Modified Files:
	mplayer.c 
Log Message:
dvd subtitles should be disabled by default, and enabled specifying -sid or -slang; this fix also restores the display of other subtitles types when dvd subs are present

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.903
retrieving revision 1.904
diff -u -r1.903 -r1.904
--- mplayer.c	12 Jan 2006 20:04:32 -0000	1.903
+++ mplayer.c	13 Jan 2006 20:06:59 -0000	1.904
@@ -266,7 +266,7 @@
 // streaming:
 int audio_id=-1;
 int video_id=-1;
-int dvdsub_id=-1;
+int dvdsub_id=-2;
 int vobsub_id=-1;
 char* audio_lang=NULL;
 char* dvdsub_lang=NULL;
@@ -1945,6 +1945,7 @@
 if(stream->type==STREAMTYPE_DVD){
   current_module="dvd lang->id";
   if(audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
+  if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=-1;
   if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
   // setup global sub numbering
   global_sub_indices[SUB_SOURCE_DEMUX] = global_sub_size; // the global # of the first demux-specific sub.




More information about the MPlayer-cvslog mailing list