Hide psz_object_name in private data
[vlc.git] / src / libvlc.c
index 9dc80c6..66f0e31 100644 (file)
@@ -263,7 +263,8 @@ libvlc_int_t * libvlc_InternalCreate( void )
     priv->p_playlist = NULL;
     priv->p_dialog_provider = NULL;
     priv->p_vlm = NULL;
-    p_libvlc->psz_object_name = strdup( "libvlc" );
+    /* Avoid being called "memcpy":*/
+    vlc_internals(p_libvlc)->psz_object_name = strdup( "libvlc" );
 
     /* Initialize message queue */
     msg_Create( p_libvlc );