Check for the existence of AVSampleBufferAudioRenderer.h before redeclaring AVSampleB...
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2016 17:14:11 +0000 (17:14 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Dec 2016 17:14:11 +0000 (17:14 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166421

Reviewed by Eric Carlson.

* platform/spi/mac/AVFoundationSPI.h:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/spi/mac/AVFoundationSPI.h

index 6fdb774..65de2eb 100644 (file)
@@ -1,3 +1,12 @@
+2016-12-22  Jer Noble  <jer.noble@apple.com>
+
+        Check for the existence of AVSampleBufferAudioRenderer.h before redeclaring AVSampleBufferAudioRenderer
+        https://bugs.webkit.org/show_bug.cgi?id=166421
+
+        Reviewed by Eric Carlson.
+
+        * platform/spi/mac/AVFoundationSPI.h:
+
 2016-12-22  Eric Carlson  <eric.carlson@apple.com>
 
         AVPlayerLayer isn't available on every system
index 8682af9..c2a5369 100644 (file)
@@ -180,6 +180,10 @@ NS_ASSUME_NONNULL_BEGIN
 
 NS_ASSUME_NONNULL_END
 
+#if __has_include("AVSampleBufferAudioRenderer.h")
+#import ("AVSampleBufferAudioRenderer")
+#else
+
 NS_ASSUME_NONNULL_BEGIN
 
 @interface AVSampleBufferAudioRenderer : NSObject
@@ -195,4 +199,6 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic, copy) NSString *audioTimePitchAlgorithm;
 @end
 
+#endif // __has_include("AVSampleBufferAudioRenderer.h")
+
 NS_ASSUME_NONNULL_END