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

Unified Diff: media/audio/clockless_audio_sink.cc

Issue 407583002: Fold AudioRenderer::Stop() into the dtor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ClocklessAudioSink Created 6 years, 5 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
« no previous file with comments | « no previous file | media/base/audio_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/clockless_audio_sink.cc
diff --git a/media/audio/clockless_audio_sink.cc b/media/audio/clockless_audio_sink.cc
index 89f43bf42fd4ec06a0598d877912957fe1a0b95f..1c9857481d4539abbf75000332d593bc87b204c7 100644
--- a/media/audio/clockless_audio_sink.cc
+++ b/media/audio/clockless_audio_sink.cc
@@ -78,7 +78,8 @@ void ClocklessAudioSink::Start() {
}
void ClocklessAudioSink::Stop() {
- Pause();
+ if (initialized_)
+ Pause();
}
void ClocklessAudioSink::Play() {
« no previous file with comments | « no previous file | media/base/audio_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698