Handle incoming frames with the same timestamp.
commitfd4edb8ffe11baf94d554e923b23ca9caefe2d03
authordalecurtis <dalecurtis@chromium.org>
Thu, 7 May 2015 03:42:48 +0000 (6 20:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 03:43:17 +0000 (7 03:43 +0000)
tree0718a86e573e078c28962e30645276ad9418fa34
parent4279b872d0187987853fb1f9283486be50efe26a
Handle incoming frames with the same timestamp.

Crash analysis shows frames with the same timestamp getting through.

Replaces the old frame if the old frame hasn't yet been rendered or
drops the new frame if the old frame has already been shown.

BUG=485042
TEST=new unittest.

Review URL: https://codereview.chromium.org/1126413002

Cr-Commit-Position: refs/heads/master@{#328693}
media/filters/video_renderer_algorithm.cc
media/filters/video_renderer_algorithm.h
media/filters/video_renderer_algorithm_unittest.cc