[vlc-devel] commit: Don't try to use p_extensions_manager if it failed to be created ( Hugo Beauzee-Luyssen )
git version control
git at videolan.org
Wed Feb 17 01:17:58 CET 2010
vlc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Tue Feb 16 15:15:05 2010 +0100| [2f75620afc33e5e876654a449037f1fc5d271422] | committer: Jean-Baptiste Kempf
Don't try to use p_extensions_manager if it failed to be created
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f75620afc33e5e876654a449037f1fc5d271422
---
modules/gui/qt4/extensions_manager.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/extensions_manager.cpp b/modules/gui/qt4/extensions_manager.cpp
index b1f451e..236138d 100644
--- a/modules/gui/qt4/extensions_manager.cpp
+++ b/modules/gui/qt4/extensions_manager.cpp
@@ -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;
More information about the vlc-devel
mailing list