Commit a71f611f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove constant playlist_NodeEmpty() parameter

parent cf8b24f0
......@@ -383,7 +383,7 @@ int playlist_DeleteFromInput( playlist_t *p_playlist, input_item_t *p_input,
void playlist_Clear( playlist_t * p_playlist, bool b_locked )
{
PL_LOCK_IF( !b_locked );
playlist_NodeEmpty( p_playlist, p_playlist->p_playing, true );
playlist_NodeEmpty( p_playlist, p_playlist->p_playing );
PL_UNLOCK_IF( !b_locked );
}
......
......@@ -139,7 +139,7 @@ int playlist_DeleteFromInputInParent( playlist_t *, input_item_t *,
int playlist_DeleteFromItemId( playlist_t*, int );
void playlist_ItemRelease( playlist_item_t * );
void playlist_NodeEmpty( playlist_t *, playlist_item_t *, bool );
void playlist_NodeEmpty( playlist_t *, playlist_item_t * );
void ResetCurrentlyPlaying( playlist_t *p_playlist, playlist_item_t *p_cur );
void ResyncCurrentIndex( playlist_t *p_playlist, playlist_item_t *p_cur );
......
......@@ -96,10 +96,8 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
*
* \param p_playlist the playlist
* \param p_root the node
* \param b_delete_items do we have to delete the children items ?
*/
void playlist_NodeEmpty( playlist_t *p_playlist, playlist_item_t *p_root,
bool b_delete_items )
void playlist_NodeEmpty( playlist_t *p_playlist, playlist_item_t *p_root )
{
PL_ASSERT_LOCKED;
......@@ -112,9 +110,9 @@ void playlist_NodeEmpty( playlist_t *p_playlist, playlist_item_t *p_root,
if( p_root->pp_children[i]->i_children > -1 )
{
playlist_NodeDelete( p_playlist, p_root->pp_children[i],
b_delete_items , false );
true, false );
}
else if( b_delete_items )
else
{
/* Delete the item here */
playlist_DeleteFromItemId( p_playlist,
......
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