• Joe Downing's avatar
    Preventing a crash when the pacing bucket has a zero rate · dbd044a3
    Joe Downing authored
    This is a preventative fix for the case where the pacing bucket has
    a zero rate.  We may want to continue investigating why the bucket
    has a zero rate though (that can be a follow-up CL though).
    
    This was a tricky one to track down as the crashes from the last 2
    releases had optimized stacks which obfuscated the exact LOC which
    was causing the divide by zero.  I looked back to our earlier
    releases and found that this crash was occuring back then (lower
    hit rate due to fewer connections using WebRTC back then) with the
    same base stack but pointing to the LOC I am addressing in this CL.
    
    Bug: 891725
    Change-Id: Ic42e910614d35c683959b8c6e4417b0197a63818
    Reviewed-on: https://chromium-review.googlesource.com/c/1258823Reviewed-by: default avatarLambros Lambrou <lambroslambrou@chromium.org>
    Commit-Queue: Joe Downing <joedow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#596309}
    dbd044a3
webrtc_frame_scheduler_simple.cc 11 KB