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

Unified Diff: content/renderer/media/audio_device.cc

Issue 8965049: Fixed CID 102675, uninitialized member vars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More audio device uninit fixes Created 9 years 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 | « base/sync_socket_win.cc ('k') | content/renderer/media/audio_input_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.cc
diff --git a/content/renderer/media/audio_device.cc b/content/renderer/media/audio_device.cc
index 03ff1be24160dc707dbdb72c5cd66ccdaaeabe35..de3b469f455335d4bd2ed4336371654b994cbf0e 100644
--- a/content/renderer/media/audio_device.cc
+++ b/content/renderer/media/audio_device.cc
@@ -28,6 +28,8 @@ AudioDevice::AudioDevice()
stream_id_(0),
play_on_start_(true),
is_started_(false),
+ shared_memory_handle_(base::SharedMemory::NULLHandle()),
+ socket_handle_(base::SyncSocket::kInvalidHandle),
memory_length_(0) {
filter_ = RenderThreadImpl::current()->audio_message_filter();
}
@@ -43,6 +45,8 @@ AudioDevice::AudioDevice(size_t buffer_size,
stream_id_(0),
play_on_start_(true),
is_started_(false),
+ shared_memory_handle_(base::SharedMemory::NULLHandle()),
+ socket_handle_(base::SyncSocket::kInvalidHandle),
memory_length_(0) {
filter_ = RenderThreadImpl::current()->audio_message_filter();
Initialize(buffer_size,
« no previous file with comments | « base/sync_socket_win.cc ('k') | content/renderer/media/audio_input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698