Commit 4963328e authored by Clément Stenac's avatar Clément Stenac

Fix HTTP deletion

parent ac471f21
......@@ -368,7 +368,8 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
int i;
for( i = 0; i < i_nb_items; i++ )
{
playlist_LockDelete( p_sys->p_playlist, p_items[i] );
playlist_LockDeleteAllFromInput( p_sys->p_playlist,
p_items[i] );
msg_Dbg( p_intf, "requested playlist delete: %d",
p_items[i] );
p_items[i] = -1;
......@@ -408,7 +409,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
}
if( j == i_nb_items )
{
playlist_LockDelete( p_sys->p_playlist,
playlist_LockDeleteAllFromInput( p_sys->p_playlist,
p_sys->p_playlist->pp_items[i]->p_input->i_id );
msg_Dbg( p_intf, "requested playlist delete: %d",
i );
......
......@@ -869,7 +869,7 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
else if( !strcmp( s, "playlist_delete" ) )
{
int i_id = E_(SSPopN)( st, vars );
playlist_LockDelete( p_sys->p_playlist, i_id );
playlist_LockDeleteAllFromInput( p_sys->p_playlist, i_id );
msg_Dbg( p_intf, "requested playlist delete: %d", i_id );
}
else if( !strcmp( s, "playlist_move" ) )
......
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