зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
73b7a51a2a
Коммит
d38ea5b37c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче