[MPlayer-dev-eng] pthread error on NetBSD

Alex Beregszaszi alex at fsn.hu
Sun Jan 25 21:26:02 CET 2004


Hi,

> --- loader/win32.c.orig	2003-09-05 17:08:23.000000000 -0500
> +++ loader/win32.c
> @@ -1374,8 +1374,10 @@ static void WINAPI expLeaveCriticalSecti
>  	printf("Win32 Warning: Leaving uninitialized Critical Section
>  	%p!!\n", c); return;
>      }
> +    if (cs->locked) {
>      cs->locked=0;
>      pthread_mutex_unlock(&(cs->mutex));
> +    }
>      return;
>  }
>  
> 
> Any better way to handle this?  If not, could you apply this patch?
It's the proper way, committed.


-- 
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)




More information about the MPlayer-dev-eng mailing list