[vlc-devel] commit: playlist: do case ignoring cmp everywhere when sorting ( Ilkka Ollakka )
git version control
git at videolan.org
Mon Jan 19 00:56:18 CET 2009
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Jan 19 01:50:12 2009 +0200| [c1788de6cb5edab674b2b4a98baa27bb17f912b9] | committer: Ilkka Ollakka
playlist: do case ignoring cmp everywhere when sorting
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1788de6cb5edab674b2b4a98baa27bb17f912b9
---
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 4301614..8b4f152 100644
--- a/src/playlist/sort.c
+++ b/src/playlist/sort.c
@@ -159,7 +159,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