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

Changeset 267486 in webkit


Ignore:
Timestamp:
Sep 23, 2020, 10:07:18 AM (6 years ago)
Author:
Chris Dumez
Message:

webaudio/AudioBufferSource/audiobuffersource-playbackrate.html is crashing
https://bugs.webkit.org/show_bug.cgi?id=216827

Reviewed by Darin Adler.

Source/WebCore:

AudioBufferSourceNode::renderSilenceAndFinishIfNotLooping() would hit an assertion inside
finish() because finish() was already called earlier when calling updateSchedulingInfo().
updateSchedulingInfo() already takes care of calling finish() when we're done playing.
Address the issue by only calling finish() if hasFinished() returns false.

No new tests, unskipped existing test.

  • Modules/webaudio/AudioBufferSourceNode.cpp:

(WebCore::AudioBufferSourceNode::renderSilenceAndFinishIfNotLooping):

LayoutTests:

Unskip test that is no longer crashing.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267484 r267486  
     12020-09-23  Chris Dumez  <cdumez@apple.com>
     2
     3        webaudio/AudioBufferSource/audiobuffersource-playbackrate.html is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=216827
     5
     6        Reviewed by Darin Adler.
     7
     8        Unskip test that is no longer crashing.
     9
     10        * TestExpectations:
     11
    1122020-09-23  Philippe Normand  <pnormand@igalia.com>
    213
  • trunk/LayoutTests/TestExpectations

    r267453 r267486  
    333333webaudio/AudioBufferSource/audiobuffersource-detune-modulation.html [ Pass Failure ]
    334334webaudio/AudioBufferSource/audiobuffersource-playbackrate-modulation.html [ Pass Failure ]
    335 
    336 # This WebAudio test is crashing in debug since its import from Blink.
    337 [ Debug ] webaudio/AudioBufferSource/audiobuffersource-playbackrate.html [ Crash ]
    338335
    339336webkit.org/b/176929 imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/ready-states/autoplay-with-slow-text-tracks.html [ Pass Failure ]
  • trunk/Source/WebCore/ChangeLog

    r267477 r267486  
     12020-09-23  Chris Dumez  <cdumez@apple.com>
     2
     3        webaudio/AudioBufferSource/audiobuffersource-playbackrate.html is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=216827
     5
     6        Reviewed by Darin Adler.
     7
     8        AudioBufferSourceNode::renderSilenceAndFinishIfNotLooping() would hit an assertion inside
     9        finish() because finish() was already called earlier when calling updateSchedulingInfo().
     10        updateSchedulingInfo() already takes care of calling finish() when we're done playing.
     11        Address the issue by only calling finish() if hasFinished() returns false.
     12
     13        No new tests, unskipped existing test.
     14
     15        * Modules/webaudio/AudioBufferSourceNode.cpp:
     16        (WebCore::AudioBufferSourceNode::renderSilenceAndFinishIfNotLooping):
     17
    1182020-09-23  Andres Gonzalez  <andresg_22@apple.com>
    219
  • trunk/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp

    r267453 r267486  
    177177        }
    178178
    179         finish();
     179        if (!hasFinished())
     180            finish();
    180181        return true;
    181182    }
Note: See TracChangeset for help on using the changeset viewer.