[vlc-devel] commit: Win32: attempt to fix VLC_STATIC_MUTEX in C++ code ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 31 19:13:18 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jan 31 20:12:26 2009 +0200| [69db0d607d850a844535ee1dbc71fb2110450218] | committer: Rémi Denis-Courmont 

Win32: attempt to fix VLC_STATIC_MUTEX in C++ code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=69db0d607d850a844535ee1dbc71fb2110450218
---

 include/vlc_threads.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index c990832..e7acc8d 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -122,10 +122,10 @@ typedef struct
 
 typedef struct
 {
-    CRITICAL_SECTION mutex;
     LONG initialized;
+    CRITICAL_SECTION mutex;
 } vlc_mutex_t;
-#define VLC_STATIC_MUTEX { .initialized = 0, }
+#define VLC_STATIC_MUTEX { 0, }
 
 typedef HANDLE  vlc_cond_t;
 typedef DWORD   vlc_threadvar_t;




More information about the vlc-devel mailing list