Commit 99f299c6 authored by Rémi Duraffort's avatar Rémi Duraffort

Lock the playlist so we can add SAP item to the playlist without asserting.

parent 6a2bec65
...@@ -315,11 +315,14 @@ void StandardPLPanel::doPopup( QModelIndex index, QPoint point ) ...@@ -315,11 +315,14 @@ void StandardPLPanel::doPopup( QModelIndex index, QPoint point )
/* This activated by the selector selection */ /* This activated by the selector selection */
void StandardPLPanel::setRoot( int i_root_id ) void StandardPLPanel::setRoot( int i_root_id )
{ {
QPL_LOCK;
playlist_item_t *p_item = playlist_ItemGetById( THEPL, i_root_id, playlist_item_t *p_item = playlist_ItemGetById( THEPL, i_root_id,
true ); true );
assert( p_item ); assert( p_item );
p_item = playlist_GetPreferredNode( THEPL, p_item ); p_item = playlist_GetPreferredNode( THEPL, p_item );
assert( p_item ); assert( p_item );
QPL_UNLOCK;
model->rebuild( p_item ); model->rebuild( p_item );
} }
......
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