[vlc-devel] commit: Win32 compile fix ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 8 22:25:22 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May  8 23:25:31 2008 +0300| [381904b9f00401e1371c9fd4e73185894b0ed540]

Win32 compile fix

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

 src/misc/objects.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 326587c..3a18d23 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -419,8 +419,8 @@ static void vlc_object_destroy( vlc_object_t *p_this )
 
 #if defined(WIN32) || defined(UNDER_CE)
     /* if object has an associated thread, close it now */
-    if( p_priv->thread_id.hThread )
-       CloseHandle(p_priv->thread_id.hThread);
+    if( p_priv->thread_id )
+       CloseHandle(p_priv->thread_id);
 #endif
 
     vlc_spin_destroy( &p_priv->ref_spin );
@@ -1470,12 +1470,8 @@ static void PrintObject( vlc_object_t *p_this, const char *psz_prefix )
 
     psz_thread[0] = '\0';
     if( vlc_internals( p_this )->b_thread )
-        snprintf( psz_thread, 29, " (thread %u)",
-#if defined(WIN32) || defined(UNDER_CE)
-                  (unsigned)vlc_internals( p_this )->thread_id.id );
-#else
-                  (unsigned)vlc_internals( p_this )->thread_id );
-#endif
+        snprintf( psz_thread, 29, " (thread %lu)",
+                  (unsigned long)vlc_internals( p_this )->thread_id );
 
     psz_parent[0] = '\0';
     if( p_this->p_parent )




More information about the vlc-devel mailing list