Chromium Code Reviews
DescriptionFix race on demuxer memory usage. Reuse previous calculation.
GetMemoryUsage() is called from the render thread, so access to
FFmpegDemuxer internals must be procted. Adding locking everywhere
would be a big change, so simply cache the last value when a new
packet is added and protect it via a lock.
BUG=550375
TEST=all tests pass, no tsan issue.
Committed: https://crrev.com/9ac642d1d2ed95b810ff276fb65c2be7b461e791
Cr-Commit-Position: refs/heads/master@{#357464}
Patch Set 1 #Patch Set 2 : Restyle. #
Messages
Total messages: 11 (4 generated)
|
|||||||||||||||||||||||||||||||||||||