From d38ea5b37c557a49bf627d813fe31ec7de1a6866 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 30 Jul 2014 22:32:58 +1200 Subject: [PATCH] Bug 1046005 - Fix compilation on OS X 10.9. r=rillian We never directly link against the CoreVideo framework, as such no external definition will be resolved --- content/media/fmp4/apple/AppleVTDecoder.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/media/fmp4/apple/AppleVTDecoder.cpp b/content/media/fmp4/apple/AppleVTDecoder.cpp index 88182aa66320..541af27d0394 100644 --- a/content/media/fmp4/apple/AppleVTDecoder.cpp +++ b/content/media/fmp4/apple/AppleVTDecoder.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include -#include "VideoToolbox/Videotoolbox.h" #include "AppleUtils.h" #include "mozilla/SHA1.h" @@ -376,12 +375,11 @@ AppleVTDecoder::InitializeSession() &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); // This key is supported (or ignored) but not declared prior to OSX 10.9. -#if MAC_OS_X_VERSION_MAX_ALLOWED < 1090 AutoCFRelease kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder = CFStringCreateWithCString(NULL, "EnableHardwareAcceleratedVideoDecoder", kCFStringEncodingUTF8); -#endif + CFDictionarySetValue(spec, kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder, kCFBooleanTrue);