1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

freebsd fix by bjoern fischer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4338 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-01-24 16:52:36 +00:00
parent 19cbab76cf
commit 9feff9f79b

View File

@ -159,6 +159,16 @@ static int CSSDVDAuthTitlePath(DVDHandle hdl,unsigned char *key_title,char *path
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 @@ static void reset_agids ( DVDHandle dvd )
ai.lsa.agid = i;
DVDAuth(dvd, &ai);
}
#endif
}