]> git.sesse.net Git - vlc/blobdiff - src/misc/messages.c
Deinline vlc_threadvar_(|s)get and kill useless indirection
[vlc] / src / misc / messages.c
index 190ec7d43ce69704506e129bf2280b151235c5d9..a453bccd545d696eaef9d875e295779c31059268 100644 (file)
@@ -599,14 +599,14 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
 
 static msg_context_t* GetContext(void)
 {
-    msg_context_t *p_ctx = vlc_threadvar_get( &msg_context );
+    msg_context_t *p_ctx = vlc_threadvar_get( msg_context );
     if( p_ctx == NULL )
     {
         p_ctx = malloc( sizeof( msg_context_t ) );
         if( !p_ctx )
             return NULL;
         p_ctx->psz_message = NULL;
-        vlc_threadvar_set( &msg_context, p_ctx );
+        vlc_threadvar_set( msg_context, p_ctx );
     }
     return p_ctx;
 }