Commit 9c9b7a3d authored by Rafaël Carré's avatar Rafaël Carré

Do not cache non existing memcpy module

parent c36ef28a
......@@ -450,11 +450,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
priv->b_color = var_InheritBool( p_libvlc, "color" );
vlc_CPU_dump( VLC_OBJECT(p_libvlc) );
/*
* 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 = var_InheritBool( p_libvlc, "stats" );
......@@ -491,10 +486,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if( !p_playlist )
{
msg_Err( p_libvlc, "playlist initialization failed" );
if( priv->p_memcpy_module != NULL )
{
module_unneed( p_libvlc, priv->p_memcpy_module );
}
module_EndBank (true);
return VLC_EGENERIC;
}
......@@ -716,12 +707,6 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
}
#endif
if( priv->p_memcpy_module )
{
module_unneed( p_libvlc, priv->p_memcpy_module );
priv->p_memcpy_module = NULL;
}
/* Save the configuration */
if( !var_InheritBool( p_libvlc, "ignore-config" ) )
config_AutoSaveConfigFile( VLC_OBJECT(p_libvlc) );
......
......@@ -176,7 +176,6 @@ typedef struct libvlc_priv_t
bool b_stats; ///< Whether to collect stats
/* Singleton objects */
module_t *p_memcpy_module; ///< Fast memcpy plugin used
playlist_t *p_playlist; ///< the playlist singleton
struct media_library_t *p_ml; ///< the ML singleton
vlc_mutex_t ml_lock; ///< Mutex for ML creation
......
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