[vlc-devel] commit: Set object name from module_need() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 20 11:48:45 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 20 12:43:20 2009 +0300| [e6669e32e8b11b2e6086befb6b460b8421d2ab51] | committer: Rémi Denis-Courmont
Set object name from module_need()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6669e32e8b11b2e6086befb6b460b8421d2ab51
---
src/libvlc.c | 2 ++
src/modules/modules.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index 6d3eb82..efebc02 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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;
diff --git a/src/modules/modules.c b/src/modules/modules.c
index cadfd62..d9aedc4 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -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 )
{
More information about the vlc-devel
mailing list