Changeset 258962 in webkit


Ignore:
Timestamp:
Mar 24, 2020 5:18:10 PM (4 years ago)
Author:
jer.noble@apple.com
Message:

REGRESSION(r258314): Leak in MediaPlayerPrivateMediaSourceAVFObjC::updateLastPixelBuffer()
https://bugs.webkit.org/show_bug.cgi?id=209519

Reviewed by Eric Carlson.

Obey the "copy" rule and adopt the results of -copyPixelBufferForSourceTime:sourceTimeForDisplay:.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:

(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::updateLastPixelBuffer):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r258961 r258962  
     12020-03-24  Jer Noble  <jer.noble@apple.com>
     2
     3        REGRESSION(r258314): Leak in MediaPlayerPrivateMediaSourceAVFObjC::updateLastPixelBuffer()
     4        https://bugs.webkit.org/show_bug.cgi?id=209519
     5
     6        Reviewed by Eric Carlson.
     7
     8        Obey the "copy" rule and adopt the results of -copyPixelBufferForSourceTime:sourceTimeForDisplay:.
     9
     10        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     11        (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::updateLastPixelBuffer):
     12
    1132020-03-24  Jiewen Tan  <jiewen_tan@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r258314 r258962  
    589589    if (m_videoOutput) {
    590590        CMTime outputTime;
    591         if (auto pixelBuffer = [m_videoOutput copyPixelBufferForSourceTime:toCMTime(currentMediaTime()) sourceTimeForDisplay:&outputTime]) {
     591        if (auto pixelBuffer = adoptCF([m_videoOutput copyPixelBufferForSourceTime:toCMTime(currentMediaTime()) sourceTimeForDisplay:&outputTime])) {
    592592            INFO_LOG(LOGIDENTIFIER, "new pixelbuffer found for time ", toMediaTime(outputTime));
    593593            m_lastPixelBuffer = WTFMove(pixelBuffer);
Note: See TracChangeset for help on using the changeset viewer.