[Mplayer-cvslog] CVS: main/loader win32.c,1.11,1.12

Felix Buenemann atmosfear at users.sourceforge.net
Mon May 7 15:23:57 CEST 2001


Update of /cvsroot/mplayer/main/loader
In directory usw-pr-cvs1:/tmp/cvs-serv25344

Modified Files:
	win32.c 
Log Message:
Applies kabis changes to avifile 0.6 cvs


Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** win32.c	2001/05/06 21:43:45	1.11
--- win32.c	2001/05/07 13:23:55	1.12
***************
*** 585,597 ****
  {
      mutex_list *ml = (mutex_list *)object;
!     int ret=0x12345678; // fixed by Zdenek Kabelac
      mutex_list* pp=mlist;
  //    dbgprintf("WaitForSingleObject(0x%x, duration %d) =>\n",object, duration);
!     do {
! 	if (pp == NULL) dbgprintf("WaitForSingleObject: NotFound\n");
! 	if((pp->pm, mlist->pm)==0)
! 		break;;
!      }while((pp=pp->prev));
!     
  
      pthread_mutex_lock(ml->pm);
--- 585,601 ----
  {
      mutex_list *ml = (mutex_list *)object;
!     int ret=WAIT_FAILED; // fixed by Zdenek Kabelac
      mutex_list* pp=mlist;
  //    dbgprintf("WaitForSingleObject(0x%x, duration %d) =>\n",object, duration);
!     // loop below was slightly fixed - its used just for checking if
!     // this object really exists in our list
!     if (!ml)
!         return (void*) ret;
!     while (pp && (pp->pm != ml->pm))
!         pp = pp->prev;
!     if (!pp) {
!         //dbgprintf("WaitForSingleObject: NotFound\n");
!         return (void*)ret;
!     }
  
      pthread_mutex_lock(ml->pm);


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list