[vlc-commits] macosx/playlist controller: fix comment and declaration for class used to add items

Felix Paul Kühne git at videolan.org
Wed May 29 15:38:50 CEST 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Wed May 29 15:36:37 2019 +0200| [18541524ce3885f0a4f985464b5dae92f9976d87] | committer: Felix Paul Kühne

macosx/playlist controller: fix comment and declaration for class used to add items

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

 modules/gui/macosx/playlist/VLCPlaylistController.h | 9 +++++----
 modules/gui/macosx/playlist/VLCPlaylistController.m | 4 ++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/gui/macosx/playlist/VLCPlaylistController.h b/modules/gui/macosx/playlist/VLCPlaylistController.h
index 908aaafa5a..7276a69ec5 100644
--- a/modules/gui/macosx/playlist/VLCPlaylistController.h
+++ b/modules/gui/macosx/playlist/VLCPlaylistController.h
@@ -29,6 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
 @class VLCPlaylistDataSource;
 @class VLCPlayerController;
 @class VLCPlaylistExportModuleDescription;
+ at class VLCOpenInputMetadata;
 
 extern NSString *VLCPlaybackOrderChanged;
 extern NSString *VLCPlaybackRepeatChanged;
@@ -105,17 +106,17 @@ extern NSString *VLCPlaylistItemsRemoved;
 
 /**
  * Simplified version to add new items to the end of the current playlist
- * @param array array of items. Each item is a Dictionary with meta info.
+ * @param array array of items. Each item is an instance of VLCOpenInputMetadata.
  */
-- (void)addPlaylistItems:(NSArray*)array;
+- (void)addPlaylistItems:(NSArray <VLCOpenInputMetadata *> *)array;
 
 /**
  * Add new items to the playlist, at specified index.
- * @param itemArray array of items. Each item is a Dictionary with meta info.
+ * @param itemArray array of items. Each item is an instance of VLCOpenInputMetadata.
  * @param insertionIndex index for new items, -1 for appending at end
  * @param startPlayback starts playback of first item if true
  */
-- (void)addPlaylistItems:(NSArray*)itemArray
+- (void)addPlaylistItems:(NSArray <VLCOpenInputMetadata *> *)itemArray
               atPosition:(size_t)insertionIndex
            startPlayback:(BOOL)startPlayback;
 
diff --git a/modules/gui/macosx/playlist/VLCPlaylistController.m b/modules/gui/macosx/playlist/VLCPlaylistController.m
index 33d5f2cd40..1597b8ec00 100644
--- a/modules/gui/macosx/playlist/VLCPlaylistController.m
+++ b/modules/gui/macosx/playlist/VLCPlaylistController.m
@@ -311,13 +311,13 @@ static const struct vlc_playlist_callbacks playlist_callbacks = {
 
 #pragma mark - controller functions for use within the UI
 
-- (void)addPlaylistItems:(NSArray*)array
+- (void)addPlaylistItems:(NSArray <VLCOpenInputMetadata *> *)array
 {
     BOOL b_autoplay = var_InheritBool(getIntf(), "macosx-autoplay");
     [self addPlaylistItems:array atPosition:-1 startPlayback:b_autoplay];
 }
 
-- (void)addPlaylistItems:(NSArray*)itemArray
+- (void)addPlaylistItems:(NSArray <VLCOpenInputMetadata *> *)itemArray
               atPosition:(size_t)insertionIndex
            startPlayback:(BOOL)startPlayback;
 {



More information about the vlc-commits mailing list