Commit 2a7f208b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: remove useless checks

An input thread always has a valid input item even if it is dead.
If not, the code would have had a ToCToU bug anyway.
parent 9702039e
......@@ -563,7 +563,7 @@ void PLModel::processInputItemUpdate( )
input_thread_t *p_input = THEMIM->getInput();
if( !p_input ) return;
if( p_input && !( p_input->b_dead || !vlc_object_alive( p_input ) ) )
if( p_input )
{
PLItem *item = findByInputId( rootItem, input_GetItem( p_input )->i_id );
if( item ) emit currentIndexChanged( index( item, 0 ) );
......
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