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

Unified Diff: trunk/src/content/renderer/media/media_stream_impl.cc

Issue 23442022: Revert 220364 "Close the shared audio output device when the tab..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/content/renderer/media/media_stream_impl.cc
===================================================================
--- trunk/src/content/renderer/media/media_stream_impl.cc (revision 222247)
+++ trunk/src/content/renderer/media/media_stream_impl.cc (working copy)
@@ -563,19 +563,6 @@
++request_it;
}
}
-
- // Free the potentially-cached audio renderer. If we don't do this, the
- // audio device will be held open after the tab has been closed even though
- // it's not being used.
- WebRtcAudioDeviceImpl* audio_device =
- dependency_factory_->GetWebRtcAudioDevice();
- if (audio_device) {
- scoped_refptr<WebRtcAudioRenderer> renderer(audio_device->renderer());
- if (renderer.get()) {
- renderer->Stop(); // This will clear the dependency factory's pointer.
- DCHECK(!audio_device->renderer().get());
- }
- }
}
scoped_refptr<VideoFrameProvider>
« 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