Bug 1062596 - Re-enable hardware acceleration in AppleVTDecoder. r=rillian

This commit is contained in:
Jean-Yves Avenard 2014-09-05 11:50:37 +10:00
Родитель 61f592a0ca
Коммит a243268a94
1 изменённых файлов: 0 добавлений и 4 удалений

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

@ -449,9 +449,6 @@ AppleVTDecoder::InitializeSession()
CFDictionaryCreateMutable(NULL, 0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
// FIXME: Enabling hardware acceleration causes crashes in
// VTDecompressionSessionCreate() with multiple videos. Bug 1055694
#if 0
// This key is supported (or ignored) but not declared prior to OSX 10.9.
AutoCFRelease<CFStringRef>
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder =
@ -461,7 +458,6 @@ AppleVTDecoder::InitializeSession()
CFDictionarySetValue(spec,
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder,
kCFBooleanTrue);
#endif
VTDecompressionOutputCallbackRecord cb = { PlatformCallback, this };
rv = VTDecompressionSessionCreate(NULL, // Allocator.