[Mplayer-cvslog] CVS: main/loader win32.c,1.62,1.63
Alex Beregszaszi
alex at mplayerhq.hu
Sat Oct 12 18:41:11 CEST 2002
Update of /cvsroot/mplayer/main/loader
In directory mail:/var/tmp.root/cvs-serv15589
Modified Files:
win32.c
Log Message:
fixed 2 10l bugs, ATI VCR2 dll now working
Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- win32.c 13 Sep 2002 19:43:13 -0000 1.62
+++ win32.c 12 Oct 2002 16:40:56 -0000 1.63
@@ -1243,7 +1243,7 @@
pthread_mutex_init(&cs->mutex, NULL);
cs->locked=0;
cs->deadbeef = 0xdeadbeef;
- *(void**)c = cs + 1;
+ *(void**)c = cs;
}
#endif
return;
@@ -1254,10 +1254,9 @@
#ifdef CRITSECS_NEWTYPE
struct CRITSECT* cs = critsecs_get_unix(c);
#else
- struct CRITSECT* cs = (*(struct CRITSECT**)c) - 1;
-
+ struct CRITSECT* cs = (*(struct CRITSECT**)c);
#endif
- dbgprintf("EnterCriticalSection(0x%x) %p maso:0x%x\n",c, cs, cs->deadbeef);
+ dbgprintf("EnterCriticalSection(0x%x) %p maso:0x%x\n",c, cs, (cs)?cs->deadbeef:NULL);
if (!cs)
{
dbgprintf("entered uninitialized critisec!\n");
@@ -1265,7 +1264,7 @@
#ifdef CRITSECS_NEWTYPE
cs=critsecs_get_unix(c);
#else
- cs = (*(struct CRITSECT**)c) - 1;
+ cs = (*(struct CRITSECT**)c);
#endif
printf("Win32 Warning: Accessed uninitialized Critical Section (%p)!\n", c);
}
@@ -1282,7 +1281,7 @@
#ifdef CRITSECS_NEWTYPE
struct CRITSECT* cs = critsecs_get_unix(c);
#else
- struct CRITSECT* cs = (*(struct CRITSECT**)c) - 1;
+ struct CRITSECT* cs = (*(struct CRITSECT**)c);
#endif
// struct CRITSECT* cs=(struct CRITSECT*)c;
dbgprintf("LeaveCriticalSection(0x%x) 0x%x\n",c, cs->deadbeef);
@@ -1300,7 +1299,7 @@
#ifdef CRITSECS_NEWTYPE
struct CRITSECT* cs = critsecs_get_unix(c);
#else
- struct CRITSECT* cs= (*(struct CRITSECT**)c) - 1;
+ struct CRITSECT* cs= (*(struct CRITSECT**)c);
#endif
// struct CRITSECT* cs=(struct CRITSECT*)c;
dbgprintf("DeleteCriticalSection(0x%x)\n",c);
More information about the MPlayer-cvslog
mailing list