Commit 03b90ce5 authored by Wieland Hoffmann's avatar Wieland Hoffmann Committed by Jean-Baptiste Kempf

playlist: Allow sorting by disc number

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b4ab9053
......@@ -259,6 +259,7 @@ INPUT_META(Season)
INPUT_META(Episode)
INPUT_META(ShowName)
INPUT_META(Actors)
INPUT_META(DiscNumber)
#define input_item_SetTrackNum input_item_SetTrackNumber
#define input_item_GetTrackNum input_item_GetTrackNumber
......
......@@ -206,7 +206,8 @@ struct playlist_add_t
DEF( SORT_TRACK_NUMBER )\
DEF( SORT_DESCRIPTION )\
DEF( SORT_RATING )\
DEF( SORT_URI )
DEF( SORT_URI )\
DEF( SORT_DISC_NUMBER )
#define DEF( s ) s,
enum
......
......@@ -306,6 +306,11 @@ SORTFN( SORT_TRACK_NUMBER, first, second )
return meta_sort( first, second, vlc_meta_TrackNumber, true );
}
SORTFN( SORT_DISC_NUMBER, first, second )
{
return meta_sort( first, second, vlc_meta_DiscNumber, true );
}
SORTFN( SORT_URI, first, second )
{
int i_ret;
......
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