Commit 4919f543 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: add asserts around p_input access

parent 4f921a59
...@@ -462,6 +462,8 @@ void InputManager::UpdateRate() ...@@ -462,6 +462,8 @@ void InputManager::UpdateRate()
void InputManager::UpdateName() void InputManager::UpdateName()
{ {
assert( p_input );
/* Update text, name and nowplaying */ /* Update text, name and nowplaying */
QString name; QString name;
...@@ -689,6 +691,7 @@ void InputManager::UpdateArt() ...@@ -689,6 +691,7 @@ void InputManager::UpdateArt()
inline void InputManager::UpdateStats() inline void InputManager::UpdateStats()
{ {
assert( p_input );
emit statisticsUpdated( input_GetItem( p_input ) ); emit statisticsUpdated( input_GetItem( p_input ) );
} }
...@@ -699,11 +702,13 @@ inline void InputManager::UpdateMeta( input_item_t *p_item ) ...@@ -699,11 +702,13 @@ inline void InputManager::UpdateMeta( input_item_t *p_item )
inline void InputManager::UpdateMeta() inline void InputManager::UpdateMeta()
{ {
assert( p_input );
emit currentMetaChanged( input_GetItem( p_input ) ); emit currentMetaChanged( input_GetItem( p_input ) );
} }
inline void InputManager::UpdateInfo() inline void InputManager::UpdateInfo()
{ {
assert( p_input );
emit infoChanged( input_GetItem( p_input ) ); emit infoChanged( input_GetItem( p_input ) );
} }
......
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