[Mplayer-cvslog] CVS: main/libmpdvdkit dvd_reader.c,1.1,1.2

Richard Felker CVS rfelker at mplayerhq.hu
Thu Apr 25 09:33:58 CEST 2002


Update of /cvsroot/mplayer/main/libmpdvdkit
In directory mail:/var/tmp.root/cvs-serv22435/libmpdvdkit

Modified Files:
	dvd_reader.c 
Log Message:
Fixed a bug/design flaw carried over from libdvdread. There is no
reason to crack keys for all titles at startup since we are just
playing one title. This makes a for a 300-5000% performance
improvement at startup on some DVDs with hard-to-crack keys, and seems
to have no negative results. (Apparently this is the reason everyone
says vlc/Xine/whatever is faster at opening DVDs than MPlayer is...)


Index: dvd_reader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit/dvd_reader.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dvd_reader.c	24 Apr 2002 19:28:03 -0000	1.1
+++ dvd_reader.c	25 Apr 2002 07:33:45 -0000	1.2
@@ -594,12 +594,14 @@
             dvd_file->filesize += len / DVD_VIDEO_LB_LEN;
         }
     }
-    
+
+#if 0
     /* Hack to crack all the keys on the first open. */
     if( !dvd_file->dvd->init_keys ) {
 	initAllCSSKeys( dvd_file->dvd );
 	dvd_file->dvd->init_keys = 1;
     }
+#endif
     
     /* Perform CSS key cracking for this title. */
     if( dvdcss_title( dvd_file->dvd->dev, (int)start ) < 0 ) {




More information about the MPlayer-cvslog mailing list