]> git.sesse.net Git - vlc/commitdiff
Qt: add asserts around p_input access
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Oct 2011 21:13:42 +0000 (23:13 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Oct 2011 21:13:42 +0000 (23:13 +0200)
modules/gui/qt4/input_manager.cpp

index fc8aa00feb69c24347c4d40ba2a3a16583409069..1146478641b5dced4f2f1fc9628eff205c8f6cb0 100644 (file)
@@ -462,6 +462,8 @@ void InputManager::UpdateRate()
 
 void InputManager::UpdateName()
 {
+    assert( p_input );
+
     /* Update text, name and nowplaying */
     QString name;
 
@@ -689,6 +691,7 @@ void InputManager::UpdateArt()
 
 inline void InputManager::UpdateStats()
 {
+    assert( p_input );
     emit statisticsUpdated( input_GetItem( p_input ) );
 }
 
@@ -699,11 +702,13 @@ inline void InputManager::UpdateMeta( input_item_t *p_item )
 
 inline void InputManager::UpdateMeta()
 {
+    assert( p_input );
     emit currentMetaChanged( input_GetItem( p_input ) );
 }
 
 inline void InputManager::UpdateInfo()
 {
+    assert( p_input );
     emit infoChanged( input_GetItem( p_input ) );
 }