]> git.sesse.net Git - vlc/blobdiff - src/modules/modules.c
Never rename an object post attach & un-deprecated find_name
[vlc] / src / modules / modules.c
index 6a0aa47611c9673197a47b753f259c85fcdf2689..5e4a0bf30c17788b8adc2941df202e75a4f1e53f 100644 (file)
@@ -607,14 +607,6 @@ found_shortcut:
     {
         msg_Dbg( p_this, "using %s module \"%s\"",
                  psz_capability, p_module->psz_object_name );
-        if( !vlc_internals(p_this)->psz_object_name )
-        {
-            /* This assumes that p_this is the object which will be using the
-             * module. That's not always the case ... but it is in most cases.
-             */
-            vlc_internals(p_this)->psz_object_name =
-                strdup( psz_alias ? psz_alias : p_module->psz_object_name );
-        }
     }
     else if( count == 0 )
     {