[vlc-devel] commit: playlist: do case ignoring cmp everywhere when sorting ( Ilkka Ollakka )
git version control
git at videolan.org
Mon Jan 19 00:59:13 CET 2009
vlc | branch: 0.9-bugfix | Ilkka Ollakka <ileoo at videolan.org> | Mon Jan 19 01:50:12 2009 +0200| [f6d262bad4372b666e7834fead1a4c3462d57fa5] | committer: Ilkka Ollakka
playlist: do case ignoring cmp everywhere when sorting
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6d262bad4372b666e7834fead1a4c3462d57fa5
---
src/playlist/sort.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/playlist/sort.c b/src/playlist/sort.c
index e8b6f3c..9ec10f3 100644
--- a/src/playlist/sort.c
+++ b/src/playlist/sort.c
@@ -156,7 +156,7 @@ static int playlist_cmp(const void *first, const void *second)
} \
else \
{ \
- if( !integer ) i_test = strcmp( psz_a, psz_b ); \
+ if( !integer ) i_test = strcasecmp( psz_a, psz_b ); \
else i_test = atoi( psz_a ) - atoi( psz_b ); \
} \
free( psz_a ); \
More information about the vlc-devel
mailing list