[Mplayer-cvslog] CVS: main/libmpdemux dvdauth.c,1.13,1.14

Atmosfear atmos4 at mplayer.dev.hu
Thu Jan 24 17:52:39 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv15319/libmpdemux

Modified Files:
	dvdauth.c 
Log Message:
freebsd fix by bjoern fischer

Index: dvdauth.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/dvdauth.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- dvdauth.c	18 Jan 2002 09:10:00 -0000	1.13
+++ dvdauth.c	24 Jan 2002 16:52:36 -0000	1.14
@@ -159,6 +159,16 @@
 
 static void reset_agids ( DVDHandle dvd )
 {
+#if !defined(DVD_AUTH) && defined(DVDIOCREPORTKEY)
+	struct dvd_authinfo ai;
+	int i;
+	for (i = 0; i < 4; i++) {
+		memset(&ai, 0, sizeof(ai));
+		ai.format = DVD_INVALIDATE_AGID;
+		ai.agid = i;
+		ioctl(dvd, DVDIOCREPORTKEY, &ai);
+	}
+#else
         dvd_authinfo ai;
         int i;
         for (i = 0; i < 4; i++) {
@@ -167,6 +177,7 @@
 	        ai.lsa.agid = i;
 		DVDAuth(dvd, &ai);
 	}
+#endif
 }
 
 




More information about the MPlayer-cvslog mailing list