Commit 016559ca authored by wolenetz's avatar wolenetz Committed by Commit bot

Fix NOTREACHED() in abortIfUpdating() when aborting 0-byte appendBuffer

BUG=643788
TEST=upstream w3c web-platform-tests/media-source/mediasource-removesourcebuffer.html

Review-Url: https://codereview.chromium.org/2305023002
Cr-Commit-Position: refs/heads/master@{#416357}
parent 3728a547
......@@ -482,12 +482,10 @@ void SourceBuffer::abortIfUpdating()
DCHECK_EQ(m_pendingRemoveStart, -1);
const char* traceEventName = 0;
if (!m_pendingAppendData.isEmpty()) {
traceEventName = "SourceBuffer::appendBuffer";
} else if (m_stream) {
if (m_stream) {
traceEventName = "SourceBuffer::appendStream";
} else {
NOTREACHED();
traceEventName = "SourceBuffer::appendBuffer";
}
// 4.1. Abort the buffer append and stream append loop algorithms if they are running.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment