Commit 5207ca64 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/nowplaying: make sure the album track number is exposed as number

parent c9c915b9
...@@ -560,7 +560,7 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var, ...@@ -560,7 +560,7 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
FREENULL(psz_album); FREENULL(psz_album);
char *psz_track_number = input_item_GetTrackNumber(p_input_item); char *psz_track_number = input_item_GetTrackNumber(p_input_item);
currentlyPlayingTrackInfo[MPMediaItemPropertyAlbumTrackNumber] = toNSStr(psz_track_number); currentlyPlayingTrackInfo[MPMediaItemPropertyAlbumTrackNumber] = @([toNSStr(psz_track_number) intValue]);
FREENULL(psz_track_number); FREENULL(psz_track_number);
[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = currentlyPlayingTrackInfo; [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = currentlyPlayingTrackInfo;
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