Remove pending demuxer read state, prefer flag, it's not stable.
The pending demuxer read state is overwritten in too many cases to be reliable, instead always use the flag instead of trying to have it both ways. The main issue this fixes is where there are parallel decodes and a demuxer read outstanding, one decode completes with an error, and the new decoder is initialized before the demuxer read completes. Previously this would stomp the pending read state and we'd try to issue a new demuxer read when the decoder initialization completed, blowing up the demuxer in the process. BUG=597605 TEST=new unittest Review-Url: https://codereview.chromium.org/2110463003 Cr-Commit-Position: refs/heads/master@{#402667}
Showing
Please register or sign in to comment