Commit e6669e32 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Set object name from module_need()

parent 8ad732cd
......@@ -782,6 +782,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
* Choose the best memcpy module
*/
priv->p_memcpy_module = module_need( p_libvlc, "memcpy", "$memcpy", false );
/* Avoid being called "memcpy":*/
vlc_object_set_name( p_libvlc, "main" );
priv->b_stats = config_GetInt( p_libvlc, "stats" ) > 0;
priv->i_timers = 0;
......
......@@ -605,6 +605,8 @@ found_shortcut:
{
msg_Dbg( p_this, "using %s module \"%s\"",
psz_capability, p_module->psz_object_name );
vlc_object_set_name( p_this, psz_alias ? psz_alias
: p_module->psz_object_name );
}
else if( count == 0 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment