[vlc-devel] [PATCH 2/7] randomizer: use constant in test

Romain Vimont rom1v at videolabs.io
Thu May 16 17:50:41 CEST 2019


---
 src/playlist/randomizer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/playlist/randomizer.c b/src/playlist/randomizer.c
index 1bb7f9e685..1490caa9a9 100644
--- a/src/playlist/randomizer.c
+++ b/src/playlist/randomizer.c
@@ -704,7 +704,7 @@ test_all_items_selected_exactly_once_with_removals(void)
     vlc_playlist_item_t *items[SIZE];
     ArrayInit(items, SIZE);
 
-    bool ok = randomizer_Add(&randomizer, items, 100);
+    bool ok = randomizer_Add(&randomizer, items, SIZE);
     assert(ok);
 
     bool selected[SIZE] = {0};
-- 
2.20.1



More information about the vlc-devel mailing list