Commit ad674a6b authored by Rémi Duraffort's avatar Rémi Duraffort

Fix playlist sort when using the flag "SORT_TITLE_NUMERIC": use the title...

Fix playlist sort when using the flag "SORT_TITLE_NUMERIC": use the title instead of the name when possible.
parent fef26f2f
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment