Commit 2f75620a authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen Committed by Jean-Baptiste Kempf

Don't try to use p_extensions_manager if it failed to be created

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 25100efb
......@@ -258,6 +258,9 @@ void ExtensionsManager::triggerMenu( int id )
void ExtensionsManager::inputChanged( input_thread_t* p_input )
{
//This is unlikely, but can happen if no extension modules can be loaded.
if ( p_extensions_manager == NULL )
return ;
vlc_mutex_lock( &p_extensions_manager->lock );
extension_t *p_ext;
......@@ -275,6 +278,9 @@ void ExtensionsManager::inputChanged( input_thread_t* p_input )
void ExtensionsManager::playingChanged( int state )
{
//This is unlikely, but can happen if no extension modules can be loaded.
if ( p_extensions_manager == NULL )
return ;
vlc_mutex_lock( &p_extensions_manager->lock );
extension_t *p_ext;
......
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