playlist: fixed two more occurences of the previous error

parent 7df5cf2f
......@@ -632,7 +632,7 @@ int playlist_Delete( playlist_t * p_playlist, int i_id )
}
var_SetInteger( p_playlist, "item-deleted", i_id );
i_bottom = 0; i_top = p_playlist->i_all_size;
i_bottom = 0; i_top = p_playlist->i_all_size - 1;
i = i_top / 2;
while( p_playlist->pp_all_items[i]->input.i_id != i_id &&
i_top > i_bottom )
......
......@@ -400,7 +400,7 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
}
var_SetInteger( p_playlist, "item-deleted", p_root->input.i_id );
i_bottom = 0; i_top = p_playlist->i_all_size;
i_bottom = 0; i_top = p_playlist->i_all_size - 1;
i = i_top / 2;
while( p_playlist->pp_all_items[i]->input.i_id != p_root->input.i_id &&
i_top > i_bottom )
......
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