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,20 +394,18 @@ QStringList PLModel::selectedURIs() ...@@ -394,20 +394,18 @@ QStringList PLModel::selectedURIs()
PL_LOCK; PL_LOCK;
PLItem *item = static_cast<PLItem*> PLItem *item = static_cast<PLItem*>
(current_selection[i].internalPointer()); (current_selection[i].internalPointer());
if( !item ) if( item )
continue;
input_item_t *p_item = NULL;
if( !p_item )
continue;
char *psz = input_item_GetURI( p_item );
if( !psz )
continue;
else
{ {
lst.append( QString( psz ) ); playlist_item_t *p_item = playlist_ItemGetById( p_playlist, item->i_id );
free( psz ); if( p_item )
{
char *psz = input_item_GetURI( p_item->p_input );
if( psz )
{
lst.append( QString( psz ) );
free( psz );
}
}
} }
PL_UNLOCK; PL_UNLOCK;
} }
......
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