-
watk authored
Previously VideoRendererImpl waited for the VideoFrameStream::Reset() to complete before invalidating its frame callback weak pointers, which meant that it could receive frames that it didn't want between Flush() and OnVideoFrameStreamResetDone(). For simplicity, now the weak pointers are invalidated at the same time that Reset() is called, so it's guaranteed that no frames will be received after Flush(). Also included in this change is reordering the deletion of the video frame queue and resetting of the VideoFrameStream to save VDAs doing wasted work. BUG=640800 Review-Url: https://codereview.chromium.org/2273033003 Cr-Commit-Position: refs/heads/master@{#414285}
4889f186