# HG changeset patch # User atmos4 # Date 1011891156 0 # Node ID f798a73716533c5b06180b1e48dea4eb68eb83d8 # Parent 71fa805e84d6aab6e4bfbab315b01ab8fb312358 freebsd fix by bjoern fischer diff -r 71fa805e84d6 -r f798a7371653 libmpdemux/dvdauth.c --- a/libmpdemux/dvdauth.c Thu Jan 24 15:21:22 2002 +0000 +++ b/libmpdemux/dvdauth.c Thu Jan 24 16:52:36 2002 +0000 @@ -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 }