Commit 15edb457 authored by Fabio Ritrovato's avatar Fabio Ritrovato Committed by Rémi Duraffort

Fix popupSave/Stream deadlock

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent bcd90fb2
......@@ -394,21 +394,19 @@ QStringList PLModel::selectedURIs()
PL_LOCK;
PLItem *item = static_cast<PLItem*>
(current_selection[i].internalPointer());
if( !item )
continue;
input_item_t *p_item = NULL;
if( !p_item )
continue;
char *psz = input_item_GetURI( p_item );
if( !psz )
continue;
else
if( item )
{
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, item->i_id );
if( p_item )
{
char *psz = input_item_GetURI( p_item->p_input );
if( psz )
{
lst.append( QString( psz ) );
free( psz );
}
}
}
PL_UNLOCK;
}
return lst;
......
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