Unreviewed, fix the build with recent SDKs.
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Sep 2018 20:51:30 +0000 (20:51 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Sep 2018 20:51:30 +0000 (20:51 +0000)
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::exernalDeviceDisplayNameForPlayer):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

index f333705..b82b893 100644 (file)
@@ -1,3 +1,10 @@
+2018-09-05  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Unreviewed, fix the build with recent SDKs.
+
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        (WebCore::exernalDeviceDisplayNameForPlayer):
+
 2018-09-05  Woodrow Wang  <woodrow_wang@apple.com>
 
         Added runtime feature flag for web API statistics
index dc3deeb..adc1d6a 100644 (file)
@@ -2828,7 +2828,10 @@ static NSString *exernalDeviceDisplayNameForPlayer(AVPlayerType *player)
 
         auto outputDeviceNames = adoptNS([[NSMutableArray alloc] init]);
         for (AVOutputDevice *outputDevice in [outputContext outputDevices]) {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
             auto outputDeviceName = adoptNS([[outputDevice name] copy]);
+#pragma clang diagnostic pop
             [outputDeviceNames addObject:outputDeviceName.get()];
         }