[vlc-commits] macosx/nowplaying: make sure the album track number is exposed as number

Felix Paul Kühne git at videolan.org
Sun Jun 10 18:31:36 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Jun 10 18:29:20 2018 +0200| [5207ca643923cc6b687b7b8a924870b36e624ef4] | committer: Felix Paul Kühne

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

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

 modules/gui/macosx/VLCInputManager.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCInputManager.m b/modules/gui/macosx/VLCInputManager.m
index 2a2af7e00a..c47648fef8 100644
--- a/modules/gui/macosx/VLCInputManager.m
+++ b/modules/gui/macosx/VLCInputManager.m
@@ -560,7 +560,7 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
     FREENULL(psz_album);
 
     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);
 
     [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = currentlyPlayingTrackInfo;



More information about the vlc-commits mailing list