<rdar://problem/20663758> Fix the build after AVPlayerViewController API change
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Apr 2015 03:03:48 +0000 (03:03 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Apr 2015 03:03:48 +0000 (03:03 +0000)
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
(WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal): Don’t pass a nil completion
handler to -[AVPlayerViewController exitFullScreenAnimated:completionHandler:].

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183236 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

index d69e922..d5eb5d7 100644 (file)
@@ -1,3 +1,11 @@
+2015-04-23  Dan Bernstein  <mitz@apple.com>
+
+        <rdar://problem/20663758> Fix the build after AVPlayerViewController API change
+
+        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+        (WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal): Don’t pass a nil completion
+        handler to -[AVPlayerViewController exitFullScreenAnimated:completionHandler:].
+
 2015-04-23  Darin Adler  <darin@apple.com>
 
         Another round of removing use of OwnPtr, PassOwnPtr, and deleteOwnedPtr
index 2a92dd7..903089e 100644 (file)
@@ -1148,7 +1148,7 @@ void WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal()
     if (hasMode(HTMLMediaElement::VideoFullscreenModeOptimized))
         [m_playerViewController cancelOptimizedFullscreen];
     if (hasMode(HTMLMediaElement::VideoFullscreenModeStandard))
-        [m_playerViewController exitFullScreenAnimated:NO completionHandler:nil];
+        [m_playerViewController exitFullScreenAnimated:NO completionHandler:[] (BOOL, NSError *) { }];
     
     [[m_playerViewController view] removeFromSuperview];
     if (m_viewController)