Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Unified Diff: media/filters/audio_renderer_impl.cc

Issue 14234023: Remove unused flush operation from Chromium audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/audio_renderer_impl.cc
diff --git a/media/filters/audio_renderer_impl.cc b/media/filters/audio_renderer_impl.cc
index bae0ec809997ba727cd1fdbe7686fb00efff321c..fd0a4104842ef8c97b247ad1515ad9dea0c33ae4 100644
--- a/media/filters/audio_renderer_impl.cc
+++ b/media/filters/audio_renderer_impl.cc
@@ -103,7 +103,7 @@ void AudioRendererImpl::Pause(const base::Closure& callback) {
void AudioRendererImpl::DoPause() {
DCHECK(message_loop_->BelongsToCurrentThread());
DCHECK(sink_);
- sink_->Pause(false);
+ sink_->Pause();
}
void AudioRendererImpl::Flush(const base::Closure& callback) {
@@ -176,8 +176,7 @@ void AudioRendererImpl::Preroll(base::TimeDelta time,
AttemptRead_Locked();
}
- // Pause and flush the stream when we preroll to a new location.
- sink_->Pause(true);
+ sink_->Pause();
}
void AudioRendererImpl::Initialize(const scoped_refptr<DemuxerStream>& stream,

Powered by Google App Engine
This is Rietveld 408576698