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

Unified Diff: content/browser/renderer_host/media/audio_sync_reader.cc

Issue 10083064: Revert 132842 - If we are using blocking write, when the renderer stop getting the data without not… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « content/browser/renderer_host/media/audio_sync_reader.h ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_sync_reader.cc
===================================================================
--- content/browser/renderer_host/media/audio_sync_reader.cc (revision 132887)
+++ content/browser/renderer_host/media/audio_sync_reader.cc (working copy)
@@ -36,7 +36,7 @@
shared_memory_,
media::PacketSizeSizeInBytes(shared_memory_->created_size()));
}
-
+ base::AutoLock auto_lock(lock_);
if (socket_.get()) {
socket_->Send(&bytes, sizeof(bytes));
}
@@ -84,8 +84,10 @@
}
void AudioSyncReader::Close() {
+ base::AutoLock auto_lock(lock_);
if (socket_.get()) {
socket_->Close();
+ socket_.reset(NULL);
}
}
« no previous file with comments | « content/browser/renderer_host/media/audio_sync_reader.h ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698