[vlc-commits] playlist: use vlc_qsort

Thomas Guillem git at videolan.org
Tue Jan 22 18:56:15 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 21 16:45:34 2019 +0100| [f205aceb4cbd8024d48ab433d12701311a8ae76e] | committer: Thomas Guillem

playlist: use vlc_qsort

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

 src/playlist/sort.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/playlist/sort.c b/src/playlist/sort.c
index b44f81a168..a85926d7d9 100644
--- a/src/playlist/sort.c
+++ b/src/playlist/sort.c
@@ -24,6 +24,7 @@
 
 #include <vlc_common.h>
 #include <vlc_rand.h>
+#include <vlc_sort.h>
 #include "control.h"
 #include "item.h"
 #include "notify.h"
@@ -377,7 +378,7 @@ vlc_playlist_Sort(vlc_playlist_t *playlist,
 
     struct sort_request req = { criteria, count };
 
-    qsort_r(array, playlist->items.size, sizeof(*array), compare_meta, &req);
+    vlc_qsort(array, playlist->items.size, sizeof(*array), compare_meta, &req);
 
     /* apply the sorting result to the playlist */
     for (size_t i = 0; i < playlist->items.size; ++i)



More information about the vlc-commits mailing list