Don't return wall clock times when time isn't ticking.
commitc49e7c5523df7164ddada93fb8d826e96d0752f3
authordalecurtis <dalecurtis@chromium.org>
Tue, 19 May 2015 05:33:28 +0000 (18 22:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 05:33:39 +0000 (19 05:33 +0000)
treefc04c7ea31da8c07fdf2257ef61450fd6b46c2ea
parent19452cebfcffc0566cfb23f80ba4664a5c2d86bb
Don't return wall clock times when time isn't ticking.

The video renderer may request wall clock times before the audio
renderer has notified the renderer that it has underflowed.  We
should refuse to convert wall clock times as soon as an underflow
state is detected, instead of waiting for the renderer to pause
everything on the media thread (which may be backed up for decoding
or other events).

BUG=489503
TEST=modified underflow test.

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

Cr-Commit-Position: refs/heads/master@{#330481}
media/renderers/audio_renderer_impl.cc
media/renderers/audio_renderer_impl_unittest.cc