[vlc-commits] randomizer: use constant in test

Romain Vimont git at videolan.org
Wed May 22 21:44:26 CEST 2019


vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Wed May 15 17:21:33 2019 +0200| [f729a6b965fc1a8c7bb11d4e503d032f196c37e3] | committer: Jean-Baptiste Kempf

randomizer: use constant in test

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f729a6b965fc1a8c7bb11d4e503d032f196c37e3
---

 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};



More information about the vlc-commits mailing list