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

Unified Diff: media/filters/null_audio_renderer.cc

Issue 100135: Fixes bug where NullAudioRenderer would join a previously joined thread. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/null_audio_renderer.cc
diff --git a/media/filters/null_audio_renderer.cc b/media/filters/null_audio_renderer.cc
index 74604f81db5903bf1692f7e59cbc5d0ef3e9bc69..a6ed798a25acb43c28d2e758f33a7a0a9abd8c63 100644
--- a/media/filters/null_audio_renderer.cc
+++ b/media/filters/null_audio_renderer.cc
@@ -86,8 +86,10 @@ bool NullAudioRenderer::OnInitialize(const MediaFormat& media_format) {
void NullAudioRenderer::OnStop() {
shutdown_ = true;
- if (thread_)
+ if (thread_) {
PlatformThread::Join(thread_);
+ thread_ = NULL;
+ }
}
} // namespace media
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698