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

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

Issue 2809673002: Fix double close in MojoAudioOutputStream. (Closed)
Patch Set: Fix Win complie. Created 3 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
Index: content/browser/renderer_host/media/audio_output_delegate_impl.cc
diff --git a/content/browser/renderer_host/media/audio_output_delegate_impl.cc b/content/browser/renderer_host/media/audio_output_delegate_impl.cc
index 84aecefb791193a916cfabd098467357d37c52be..43df083043784da4903d6917b1218e493571328c 100644
--- a/content/browser/renderer_host/media/audio_output_delegate_impl.cc
+++ b/content/browser/renderer_host/media/audio_output_delegate_impl.cc
@@ -171,7 +171,7 @@ void AudioOutputDelegateImpl::OnSetVolume(double volume) {
void AudioOutputDelegateImpl::SendCreatedNotification() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
subscriber_->OnStreamCreated(stream_id_, reader_->shared_memory(),
- reader_->foreign_socket());
+ reader_->TakeForeignSocket());
}
void AudioOutputDelegateImpl::UpdatePlayingState(bool playing) {

Powered by Google App Engine
This is Rietveld 408576698