Index: media/renderers/audio_renderer_impl.cc |
diff --git a/media/renderers/audio_renderer_impl.cc b/media/renderers/audio_renderer_impl.cc |
index afd298b657701e96f52946849041fb91d08d9d19..20da11152b0f2908aab2ec4ae7a438a5a8cbae47 100644 |
--- a/media/renderers/audio_renderer_impl.cc |
+++ b/media/renderers/audio_renderer_impl.cc |
@@ -177,7 +177,6 @@ void AudioRendererImpl::SetMediaTime(base::TimeDelta time) { |
ended_timestamp_ = kInfiniteDuration; |
last_render_time_ = stop_rendering_time_ = base::TimeTicks(); |
first_packet_timestamp_ = kNoTimestamp; |
- last_media_timestamp_ = base::TimeDelta(); |
audio_clock_.reset(new AudioClock(time, audio_parameters_.sample_rate())); |
} |
@@ -194,20 +193,6 @@ base::TimeDelta AudioRendererImpl::CurrentMediaTime() { |
current_media_time = audio_clock_->back_timestamp(); |
} |
- // Clamp current media time to the last reported value, this prevents higher |
- // level clients from seeing time go backwards based on inaccurate or spurious |
- // delay values reported to the AudioClock. |
- // |
- // It is expected that such events are transient and will be recovered as |
- // rendering continues over time. |
- if (current_media_time < last_media_timestamp_) { |
- DVLOG(2) << __func__ << ": " << last_media_timestamp_ |
- << " (clamped), actual: " << current_media_time; |
- return last_media_timestamp_; |
- } |
- |
- DVLOG(2) << __func__ << ": " << current_media_time; |
- last_media_timestamp_ = current_media_time; |
return current_media_time; |
} |