[vlc-commits] input: fix sort on nodes without children (fixes #15028)
Thomas Guillem
git at videolan.org
Thu Jul 9 14:33:44 CEST 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 9 14:31:26 2015 +0200| [11f2aed137335f4adf665a040be058bff5386998] | committer: Thomas Guillem
input: fix sort on nodes without children (fixes #15028)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11f2aed137335f4adf665a040be058bff5386998
---
src/input/item.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/item.c b/src/input/item.c
index 2dd8ca0..6f38e32 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -1176,7 +1176,7 @@ static int compar_node( const void *p1, const void *p2 )
static void sort_subitems( input_item_node_t *p_node,
input_item_compar_cb compar_cb )
{
- if( p_node->i_children < 0 || !compar_cb )
+ if( p_node->i_children <= 0 || !compar_cb )
return;
p_node->compar_cb = compar_cb;
More information about the vlc-commits
mailing list