]> git.sesse.net Git - vlc/commitdiff
threads: use vlc_internals()
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 3 May 2008 08:41:51 +0000 (11:41 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 3 May 2008 09:22:18 +0000 (12:22 +0300)
src/misc/threads.c

index 5bf2fa81e2807ed375259bb3c21900c2f9f26efb..abc83b1c9275bd25d492b874a13e3a4d1dd24ed0 100644 (file)
@@ -412,7 +412,7 @@ int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line
 {
     int i_ret;
     void *p_data = (void *)p_this;
-    vlc_object_internals_t *p_priv = p_this->p_internals;
+    vlc_object_internals_t *p_priv = vlc_internals( p_this );
 
     vlc_mutex_lock( &p_this->object_lock );
 
@@ -539,7 +539,7 @@ int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line
 int __vlc_thread_set_priority( vlc_object_t *p_this, const char * psz_file,
                                int i_line, int i_priority )
 {
-    vlc_object_internals_t *p_priv = p_this->p_internals;
+    vlc_object_internals_t *p_priv = vlc_internals( p_this );
 #if defined( WIN32 ) || defined( UNDER_CE )
     VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
 
@@ -603,7 +603,7 @@ void __vlc_thread_ready( vlc_object_t *p_this )
  *****************************************************************************/
 void __vlc_thread_join( vlc_object_t *p_this, const char * psz_file, int i_line )
 {
-    vlc_object_internals_t *p_priv = p_this->p_internals;
+    vlc_object_internals_t *p_priv = vlc_internals( p_this );
 
 #if defined( UNDER_CE ) || defined( WIN32 )
     HMODULE hmodule;