Mercurial > mplayer.hg
changeset 4337:f798a7371653
freebsd fix by bjoern fischer
author | atmos4 |
---|---|
date | Thu, 24 Jan 2002 16:52:36 +0000 |
parents | 71fa805e84d6 |
children | 70a4c3a5d86f |
files | libmpdemux/dvdauth.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 }