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() ...@@ -394,21 +394,19 @@ 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; {
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, item->i_id );
input_item_t *p_item = NULL; if( p_item )
if( !p_item ) {
continue; char *psz = input_item_GetURI( p_item->p_input );
if( psz )
char *psz = input_item_GetURI( p_item );
if( !psz )
continue;
else
{ {
lst.append( QString( psz ) ); lst.append( QString( psz ) );
free( psz ); free( psz );
} }
}
}
PL_UNLOCK; PL_UNLOCK;
} }
return lst; 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