Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5040f2d4b615dd1ed497f4d97a9827df960f08c8
      
https://github.com/WebKit/WebKit/commit/5040f2d4b615dd1ed497f4d97a9827df960f08c8
  Author: Youenn Fablet <[email protected]>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    A LayoutTests/http/wpt/webcodecs/flush-after-failing-decoder-expected.txt
    A LayoutTests/http/wpt/webcodecs/flush-after-failing-decoder.html
    M Source/WebCore/platform/video-codecs/cocoa/WebRTCVideoDecoderVTB.mm

  Log Message:
  -----------
  WebRTCVideoDecoderVTB::flush can be called with a null internal decoder
rdar://175795592
https://bugs.webkit.org/show_bug.cgi?id=313622

Reviewed by Eric Carlson.

We need to check for m_decoder to be nullptr since flush can be called without 
having created a valid m_decoder.

Test: http/wpt/webcodecs/flush-after-failing-decoder.html
* LayoutTests/http/wpt/webcodecs/flush-after-failing-decoder-expected.txt: 
Added.
* LayoutTests/http/wpt/webcodecs/flush-after-failing-decoder.html: Added.
* Source/WebCore/platform/video-codecs/cocoa/WebRTCVideoDecoderVTB.mm:
(WebCore::WebRTCVideoDecoderVTB::flush):

Canonical link: https://commits.webkit.org/312296@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to