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

Unified Diff: media/audio/win/audio_low_latency_output_win.h

Issue 10866015: Don't leak render thread on Stop(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: #include. Created 8 years, 4 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/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_low_latency_output_win.h
diff --git a/media/audio/win/audio_low_latency_output_win.h b/media/audio/win/audio_low_latency_output_win.h
index 8267682d686f1ab01b6165aebf944f083aa35998..2e6e3879e1c196c094337abd99cf39468dd36c6c 100644
--- a/media/audio/win/audio_low_latency_output_win.h
+++ b/media/audio/win/audio_low_latency_output_win.h
@@ -159,6 +159,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/platform_thread.h"
#include "base/threading/simple_thread.h"
#include "base/win/scoped_co_mem.h"
@@ -308,10 +309,10 @@ class MEDIA_EXPORT WASAPIAudioOutputStream
// Rendering is driven by this thread (which has no message loop).
// All OnMoreData() callbacks will be called from this thread.
- base::DelegateSimpleThread* render_thread_;
+ scoped_ptr<base::DelegateSimpleThread> render_thread_;
// Contains the desired audio format which is set up at construction.
- // Extended PCM waveform format structure based on WAVEFORMATEXTENSIBLE.
+ // Extended PCM waveform format structure based on WAVEFORMATEXTENSIBLE.
// Use this for multiple channel and hi-resolution PCM data.
WAVEFORMATPCMEX format_;
« no previous file with comments | « no previous file | media/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698