Commit 90d34ab6 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: missing locks exporting playlist

parent 851cd5d2
......@@ -681,7 +681,9 @@ void DialogsProvider::saveRecentsToPlaylist()
}
saveAPlaylist(THEPL, p_node_recents);
playlist_Lock(THEPL);
playlist_NodeDelete(THEPL, p_node_recents, true, false);
playlist_Unlock(THEPL);
}
/****************************************************************************
......
......@@ -158,7 +158,9 @@ void RecentsMRL::save()
playlist_item_t *RecentsMRL::toPlaylist(int length)
{
playlist_Lock(THEPL);
playlist_item_t *p_node_recent = playlist_NodeCreate(THEPL, _("Recently Played"), THEPL->p_root, PLAYLIST_END, PLAYLIST_RO_FLAG, NULL);
playlist_Unlock(THEPL);
if ( p_node_recent == NULL ) return NULL;
......
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