Chromium Code Reviews| Index: media/filters/audio_clock.cc |
| diff --git a/media/filters/audio_clock.cc b/media/filters/audio_clock.cc |
| index c561c27be0f2e8d71a4bcdcd341a0ac14f860313..c7f18ab7aef1db5197bb39e2e8e9578dcbdb3079 100644 |
| --- a/media/filters/audio_clock.cc |
| +++ b/media/filters/audio_clock.cc |
| @@ -81,8 +81,10 @@ void AudioClock::WroteAudio(int frames_written, |
| } |
| base::TimeDelta AudioClock::TimeUntilPlayback(base::TimeDelta timestamp) const { |
| - DCHECK(timestamp >= front_timestamp_); |
| - DCHECK(timestamp <= back_timestamp_); |
| + DCHECK(timestamp >= front_timestamp_) << ": " << timestamp << ", " |
|
DaleCurtis
2015/04/28 18:28:12
I think you can just use DCHECK_GE() now?
xhwang
2015/04/28 19:51:14
Done.
|
| + << front_timestamp_; |
| + DCHECK(timestamp <= back_timestamp_) << ": " << timestamp << ", " |
| + << back_timestamp_; |
| int64_t frames_until_timestamp = 0; |
| double timestamp_us = timestamp.InMicroseconds(); |