mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
Qt: add asserts around p_input access
This commit is contained in:
parent
4f921a5914
commit
4919f543ac
@ -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 ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user