vlc | branch: master | Felix Paul Kühne <[email protected]> | Wed Mar 27 15:31:21 2019 +0100| [9349f5a8113c7901eb0d4831c0d7d478ab59f894] | committer: Felix Paul Kühne
macosx/player controller: remove hack > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9349f5a8113c7901eb0d4831c0d7d478ab59f894 --- modules/gui/macosx/playlist/VLCPlayerController.h | 2 -- modules/gui/macosx/playlist/VLCPlayerController.m | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/gui/macosx/playlist/VLCPlayerController.h b/modules/gui/macosx/playlist/VLCPlayerController.h index 70f38109da..5619c611cf 100644 --- a/modules/gui/macosx/playlist/VLCPlayerController.h +++ b/modules/gui/macosx/playlist/VLCPlayerController.h @@ -27,11 +27,9 @@ NS_ASSUME_NONNULL_BEGIN @class VLCInputStats; -extern NSString *VLCPlayerCurrentMediaItem; /** * Listen to VLCPlayerCurrentMediaItemChanged to notified if the current media item changes for the player * @note the affected player object will be the object of the notification - * @note the userInfo dictionary will have the pointer to the new input_item_t for key VLCPlayerCurrentMediaItem */ extern NSString *VLCPlayerCurrentMediaItemChanged; diff --git a/modules/gui/macosx/playlist/VLCPlayerController.m b/modules/gui/macosx/playlist/VLCPlayerController.m index 72e3f699f3..627f5ad2d9 100644 --- a/modules/gui/macosx/playlist/VLCPlayerController.m +++ b/modules/gui/macosx/playlist/VLCPlayerController.m @@ -30,7 +30,6 @@ #import <MediaPlayer/MediaPlayer.h> -NSString *VLCPlayerCurrentMediaItem = @"VLCPlayerCurrentMediaItem"; NSString *VLCPlayerCurrentMediaItemChanged = @"VLCPlayerCurrentMediaItemChanged"; NSString *VLCPlayerStateChanged = @"VLCPlayerStateChanged"; NSString *VLCPlayerErrorChanged = @"VLCPlayerErrorChanged"; @@ -650,8 +649,7 @@ static const struct vlc_player_aout_cbs player_aout_callbacks = { - (void)currentMediaItemChanged:(input_item_t *)newMediaItem { [_defaultNotificationCenter postNotificationName:VLCPlayerCurrentMediaItemChanged - object:self - userInfo:@{VLCPlayerCurrentMediaItem:[NSValue valueWithPointer:newMediaItem]}]; + object:self]; } - (void)stateChanged:(enum vlc_player_state)state _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
