From 08976bd41d066a655902574abfabd2b9f7d0d30b Mon Sep 17 00:00:00 2001 From: mloenow Date: Sun, 19 May 2013 16:39:14 +0300 Subject: [PATCH] Add [NullAllowed] to afterItem on AVQueuePlayer's CanInsert and InsertItem Apple's documentation* indicates nil is allowed for afterItem on AVQueuePlayer's canInsertItem:afterItem: and insertItem:afterItem:. * https://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVQueuePlayer_Class/Reference/Reference.html --- src/avfoundation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avfoundation.cs b/src/avfoundation.cs index 8c5cd5ed..d27ac1e8 100644 --- a/src/avfoundation.cs +++ b/src/avfoundation.cs @@ -4292,10 +4292,10 @@ interface AVQueuePlayer { void AdvanceToNextItem (); [Export ("canInsertItem:afterItem:")] - bool CanInsert (AVPlayerItem item, AVPlayerItem afterItem); + bool CanInsert (AVPlayerItem item, [NullAllowed] AVPlayerItem afterItem); [Export ("insertItem:afterItem:")] - void InsertItem (AVPlayerItem item, AVPlayerItem afterItem); + void InsertItem (AVPlayerItem item, [NullAllowed] AVPlayerItem afterItem); [Export ("removeItem:")] void RemoveItem (AVPlayerItem item);