Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Issue 2109083003: Merge M52: "Fix dropped demuxer buffers for fallback decoder" (Closed)

Created:
4 years, 5 months ago by DaleCurtis
Modified:
4 years, 5 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
Project:
chromium
Visibility:
Public.

Description

Merge M52: "Fix dropped demuxer buffers for fallback decoder" An edge case was missed due to a typo in a DCHECK, during the original fallback decoder submission. Currently, the following scenario can happen: - DecoderStream requests buffers from the demuxer (STATE_PENDING_DEMUXER_READ). - |decoder_| returns a DECODE_ERROR before a frame was ouptutted, initiating a decoder fallback (STATE_REINITIALIZING_DECODER). - OnDecoderSelected() successfully completes (STATE_NORMAL). - OnBufferReady() is called back (the typo in the DCHECK meant we never considered when we enter the function in STATE_NORMAL). We return at line 601 because the state is not STATE_PENDING_DEMUXER_READ, and drop the buffer. This CL fixes the typo, and changes so we only drop the buffer whilst in STATE_ERROR, and also handles the case where we had saved buffers in the fallback buffer queue. BUG=597605, 615141 TEST= Setup GpuVideoDecoder to fail 10% and refreshed the page for several minutes. Hard to test the end to end though... Review-Url: https://codereview.chromium.org/2012293002 Cr-Commit-Position: refs/heads/master@{#396371} (cherry picked from commit 4849043c3e003ef57a431552f9a97cf159debd06) Committed: https://chromium.googlesource.com/chromium/src/+/62136bd4d4f641a0f516badd93c200eaf2bca285

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -5 lines) Patch
M media/filters/decoder_stream.cc View 3 chunks +17 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
DaleCurtis
4 years, 5 months ago (2016-06-30 01:39:07 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
62136bd4d4f641a0f516badd93c200eaf2bca285.

Powered by Google App Engine
This is Rietveld 408576698