Changeset 244922 in webkit
- Timestamp:
- May 3, 2019 2:47:37 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r244921 r244922 1 2019-05-03 Eric Carlson <eric.carlson@apple.com> 2 3 AVFoundation framework isn't always installed 4 https://bugs.webkit.org/show_bug.cgi?id=197577 5 <rdar://problem/50447841> 6 7 Reviewed by Jer Noble. 8 9 Use PAL::isAVFoundationFrameworkAvailable() to check to see if AVFoundation is 10 installed, not PAL::AVFoundationLibrary(). 11 12 * platform/graphics/avfoundation/objc/AVFoundationMIMETypeCache.mm: 13 (WebCore::AVFoundationMIMETypeCache::isAvailable const): 14 (WebCore::AVFoundationMIMETypeCache::loadMIMETypes): 15 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 16 (WebCore::MediaPlayerPrivateAVFoundationObjC::isAvailable): 17 (WebCore::MediaPlayerPrivateAVFoundationObjC::wirelessPlaybackTargetType const): 18 (WebCore::exernalDeviceDisplayNameForPlayer): 19 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: 20 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::isAvailable): 21 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: 22 (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::isAvailable): 23 * platform/graphics/cocoa/HEVCUtilitiesCocoa.mm: 24 (WebCore::validateHEVCParameters): 25 * platform/mediastream/mac/AVCaptureDeviceManager.mm: 26 (WebCore::AVCaptureDeviceManager::isAvailable): 27 1 28 2019-05-03 Sihui Liu <sihui_liu@apple.com> 2 29 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/AVFoundationMIMETypeCache.mm
r244704 r244922 94 94 // FIXME: This should be using AVFoundationLibraryIsAvailable() instead, but doing so causes soft-linking 95 95 // to subsequently fail on certain symbols. See <rdar://problem/42224780> for more details. 96 return PAL:: AVFoundationLibrary();96 return PAL::isAVFoundationFrameworkAvailable(); 97 97 #else 98 98 return AVFoundationLibraryIsAvailable(); … … 110 110 static std::once_flag onceFlag; 111 111 std::call_once(onceFlag, [this] { 112 if (!PAL:: AVFoundationLibrary())112 if (!PAL::isAVFoundationFrameworkAvailable()) 113 113 return; 114 114 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r244704 r244922 1697 1697 bool MediaPlayerPrivateAVFoundationObjC::isAvailable() 1698 1698 { 1699 return PAL:: AVFoundationLibrary() && isCoreMediaFrameworkAvailable();1699 return PAL::isAVFoundationFrameworkAvailable() && isCoreMediaFrameworkAvailable(); 1700 1700 } 1701 1701 … … 2577 2577 2578 2578 #if PLATFORM(IOS_FAMILY) 2579 if (!PAL:: AVFoundationLibrary())2579 if (!PAL::isAVFoundationFrameworkAvailable()) 2580 2580 return MediaPlayer::TargetTypeNone; 2581 2581 … … 2601 2601 { 2602 2602 #if HAVE(CELESTIAL) 2603 if (!PAL:: AVFoundationLibrary())2603 if (!PAL::isAVFoundationFrameworkAvailable()) 2604 2604 return nil; 2605 2605 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r244704 r244922 180 180 bool MediaPlayerPrivateMediaSourceAVFObjC::isAvailable() 181 181 { 182 return PAL:: AVFoundationLibrary()182 return PAL::isAVFoundationFrameworkAvailable() 183 183 && isCoreMediaFrameworkAvailable() 184 184 && getAVStreamDataParserClass() -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
r244704 r244922 227 227 bool MediaPlayerPrivateMediaStreamAVFObjC::isAvailable() 228 228 { 229 return PAL::AVFoundationLibrary() && isCoreMediaFrameworkAvailable() && getAVSampleBufferDisplayLayerClass();229 return isAVFoundationFrameworkAvailable() && isCoreMediaFrameworkAvailable() && getAVSampleBufferDisplayLayerClass(); 230 230 } 231 231 -
trunk/Source/WebCore/platform/graphics/cocoa/HEVCUtilitiesCocoa.mm
r244704 r244922 42 42 CMVideoCodecType codec = kCMVideoCodecType_HEVC; 43 43 if (hasAlphaChannel) { 44 if (!PAL:: AVFoundationLibrary() || !PAL::canLoad_AVFoundation_AVVideoCodecTypeHEVCWithAlpha())44 if (!PAL::isAVFoundationFrameworkAvailable() || !PAL::canLoad_AVFoundation_AVVideoCodecTypeHEVCWithAlpha()) 45 45 return false; 46 46 -
trunk/Source/WebCore/platform/mediastream/mac/AVCaptureDeviceManager.mm
r244704 r244922 161 161 bool AVCaptureDeviceManager::isAvailable() 162 162 { 163 return PAL:: AVFoundationLibrary();163 return PAL::isAVFoundationFrameworkAvailable(); 164 164 } 165 165
Note: See TracChangeset
for help on using the changeset viewer.