[vlc-devel] commit: Fix playlist sort when using the flag "SORT_TITLE_NUMERIC": use the title instead of the name when possible. ( Rémi Duraffort )

git version control git at videolan.org
Tue Apr 28 10:01:04 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Apr 28 09:59:53 2009 +0200| [ad674a6b12fd5946374384b04ccaf77d52d4a6ca] | committer: Rémi Duraffort 

Fix playlist sort when using the flag "SORT_TITLE_NUMERIC": use the title instead of the name when possible.

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

 src/playlist/sort.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/playlist/sort.c b/src/playlist/sort.c
index 7b79606..b6e59f2 100644
--- a/src/playlist/sort.c
+++ b/src/playlist/sort.c
@@ -173,9 +173,10 @@ static int playlist_cmp(const void *first, const void *second)
     }
     else if( sort_mode == SORT_TITLE_NUMERIC )
     {
-        char *psz_i = input_item_GetName( (*(playlist_item_t **)first)->p_input );
-        char *psz_ismall =
-                input_item_GetName( (*(playlist_item_t **)second)->p_input );
+        char *psz_i = input_item_GetTitleFbName(
+                                (*(playlist_item_t **)first)->p_input );
+        char *psz_ismall = input_item_GetTitleFbName(
+                                (*(playlist_item_t **)second)->p_input );
         i_test = atoi( psz_i ) - atoi( psz_ismall );
         free( psz_i );
         free( psz_ismall );




More information about the vlc-devel mailing list