⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264792 in webkit


Ignore:
Timestamp:
Jul 23, 2020, 2:57:10 PM (6 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r264791. rdar://problem/66014800

[Cocoa] RELEASE_ASSERT when calling registerSupplementalVP9Decoder() when VideoToolbox.framework is not present
​https://bugs.webkit.org/show_bug.cgi?id=214697
<rdar://problem/66010949>

Reviewed by Eric Carlson.

  • platform/graphics/cocoa/VP9UtilitiesCocoa.mm: (WebCore::registerSupplementalVP9Decoder): (WebCore::isVP9DecoderAvailable):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@264791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610.1.23.1-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610.1.23.1-branch/Source/WebCore/ChangeLog

    r264773 r264792  
     12020-07-23  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r264791. rdar://problem/66014800
     4
     5    [Cocoa] RELEASE_ASSERT when calling registerSupplementalVP9Decoder() when VideoToolbox.framework is not present
     6    https://bugs.webkit.org/show_bug.cgi?id=214697
     7    <rdar://problem/66010949>
     8   
     9    Reviewed by Eric Carlson.
     10   
     11    * platform/graphics/cocoa/VP9UtilitiesCocoa.mm:
     12    (WebCore::registerSupplementalVP9Decoder):
     13    (WebCore::isVP9DecoderAvailable):
     14   
     15   
     16    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@264791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     17
     18    2020-07-23  Jer Noble  <jer.noble@apple.com>
     19
     20            [Cocoa] RELEASE_ASSERT when calling registerSupplementalVP9Decoder() when VideoToolbox.framework is not present
     21            https://bugs.webkit.org/show_bug.cgi?id=214697
     22            <rdar://problem/66010949>
     23
     24            Reviewed by Eric Carlson.
     25
     26            * platform/graphics/cocoa/VP9UtilitiesCocoa.mm:
     27            (WebCore::registerSupplementalVP9Decoder):
     28            (WebCore::isVP9DecoderAvailable):
     29
    1302020-07-23  Alan Coon  <alancoon@apple.com>
    231
  • branches/safari-610.1.23.1-branch/Source/WebCore/platform/graphics/cocoa/VP9UtilitiesCocoa.mm

    r264708 r264792  
    9999void registerSupplementalVP9Decoder()
    100100{
     101    if (!VideoToolboxLibrary(true))
     102        return;
     103
    101104    if (canLoad_VideoToolbox_VTRegisterSupplementalVideoDecoderIfAvailable())
    102105        softLink_VideoToolbox_VTRegisterSupplementalVideoDecoderIfAvailable(kCMVideoCodecType_VP9);
    … …  
    105108bool isVP9DecoderAvailable()
    106109{
     110    if (!VideoToolboxLibrary(true))
     111        return false;
    107112    return noErr == VTSelectAndCreateVideoDecoderInstance(kCMVideoCodecType_VP9, kCFAllocatorDefault, nullptr, nullptr);
    108113}
Note: See TracChangeset for help on using the changeset viewer.