Title: [140714] trunk/Source/WebCore
Revision
140714
Author
jer.no...@apple.com
Date
2013-01-24 13:09:29 -0800 (Thu, 24 Jan 2013)

Log Message

Unreviewed build fix for Mac/Lion.

Protect Lion from the absence of VideoToolbox.h by wrapping in #if
guards.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (140713 => 140714)


--- trunk/Source/WebCore/ChangeLog	2013-01-24 21:02:11 UTC (rev 140713)
+++ trunk/Source/WebCore/ChangeLog	2013-01-24 21:09:29 UTC (rev 140714)
@@ -1,3 +1,12 @@
+2013-01-24  Jer Noble  <jer.no...@apple.com>
+
+        Unreviewed build fix for Mac/Lion.
+
+        Protect Lion from the absence of VideoToolbox.h by wrapping in #if
+        guards.
+
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+
 2013-01-24  Anders Carlsson  <ander...@apple.com>
 
         Add stubbed out StorageNamespaceProxy class

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (140713 => 140714)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-01-24 21:02:11 UTC (rev 140713)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-01-24 21:09:29 UTC (rev 140714)
@@ -52,22 +52,31 @@
 
 #import <AVFoundation/AVFoundation.h>
 #import <CoreMedia/CoreMedia.h>
+
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
 #import <CoreVideo/CoreVideo.h>
 #import <VideoToolbox/VideoToolbox.h>
+#endif
 
 SOFT_LINK_FRAMEWORK_OPTIONAL(AVFoundation)
 SOFT_LINK_FRAMEWORK_OPTIONAL(CoreMedia)
+
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
 SOFT_LINK_FRAMEWORK_OPTIONAL(CoreVideo)
 SOFT_LINK_FRAMEWORK_OPTIONAL(VideoToolbox)
+#endif
 
 SOFT_LINK(CoreMedia, CMTimeCompare, int32_t, (CMTime time1, CMTime time2), (time1, time2))
 SOFT_LINK(CoreMedia, CMTimeMakeWithSeconds, CMTime, (Float64 seconds, int32_t preferredTimeScale), (seconds, preferredTimeScale))
 SOFT_LINK(CoreMedia, CMTimeGetSeconds, Float64, (CMTime time), (time))
 SOFT_LINK(CoreMedia, CMTimeRangeGetEnd, CMTime, (CMTimeRange range), (range))
+
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
 SOFT_LINK(CoreVideo, CVPixelBufferGetWidth, size_t, (CVPixelBufferRef pixelBuffer), (pixelBuffer))
 SOFT_LINK(CoreVideo, CVPixelBufferGetHeight, size_t, (CVPixelBufferRef pixelBuffer), (pixelBuffer))
 SOFT_LINK(VideoToolbox, VTPixelTransferSessionCreate, OSStatus, (CFAllocatorRef allocator, VTPixelTransferSessionRef *pixelTransferSessionOut), (allocator, pixelTransferSessionOut))
 SOFT_LINK(VideoToolbox, VTPixelTransferSessionTransferImage, OSStatus, (VTPixelTransferSessionRef session, CVPixelBufferRef sourceBuffer, CVPixelBufferRef destinationBuffer), (session, sourceBuffer, destinationBuffer))
+#endif
 
 SOFT_LINK_CLASS(AVFoundation, AVPlayer)
 SOFT_LINK_CLASS(AVFoundation, AVPlayerItem)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to