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
This commit is contained in:
Jean-Yves Avenard 2014-07-30 22:32:58 +12:00
Родитель 73b7a51a2a
Коммит d38ea5b37c
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <CoreFoundation/CFString.h>
#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<CFStringRef>
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder =
CFStringCreateWithCString(NULL, "EnableHardwareAcceleratedVideoDecoder",
kCFStringEncodingUTF8);
#endif
CFDictionarySetValue(spec,
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder,
kCFBooleanTrue);