Changeset 264188 in webkit


Ignore:
Timestamp:
Jul 9, 2020 12:49:58 PM (4 years ago)
Author:
Fujii Hironori
Message:

[WinCairo][MediaFoundation] Use /DELAYLOAD for mf.dll
https://bugs.webkit.org/show_bug.cgi?id=213330

Reviewed by Per Arne Vollan.

WinCairo failed to start up due to a missing dependency on some
versions of Windows in which Media Foundation is not available
such like Windows 10 N. Use delay load for Media Foundation. And,
check the availability.

  • PlatformWinCairo.cmake: Link with delayimp.lib. Added /DELAYLOAD linker options.
  • platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:

(WebCore::MediaPlayerPrivateMediaFoundation::isAvailable): Check mf.dll is available.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r264177 r264188  
     12020-07-09  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo][MediaFoundation] Use /DELAYLOAD for mf.dll
     4        https://bugs.webkit.org/show_bug.cgi?id=213330
     5
     6        Reviewed by Per Arne Vollan.
     7
     8        WinCairo failed to start up due to a missing dependency on some
     9        versions of Windows in which Media Foundation is not available
     10        such like Windows 10 N. Use delay load for Media Foundation. And,
     11        check the availability.
     12
     13        * PlatformWinCairo.cmake: Link with delayimp.lib. Added /DELAYLOAD linker options.
     14        * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
     15        (WebCore::MediaPlayerPrivateMediaFoundation::isAvailable): Check mf.dll is available.
     16
    1172020-07-09  Eric Carlson  <eric.carlson@apple.com>
    218
  • trunk/Source/WebCore/PlatformWinCairo.cmake

    r255670 r264188  
    4444    comctl32
    4545    crypt32
     46    delayimp
    4647    dxva2
    4748    evr
     
    5556)
    5657
     58target_link_options(WebCore PUBLIC /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll)
     59
    5760list(APPEND WebCoreTestSupport_LIBRARIES
    5861    Cairo::Cairo
  • trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp

    r253482 r264188  
    108108bool MediaPlayerPrivateMediaFoundation::isAvailable()
    109109{
    110     notImplemented();
    111     return true;
     110    static bool isMediaFoundationAvailable = LoadLibrary(L"mf.dll");
     111    return isMediaFoundationAvailable;
    112112}
    113113
Note: See TracChangeset for help on using the changeset viewer.