summaryrefslogtreecommitdiffstats
path: root/content/renderer
diff options
context:
space:
mode:
authorxians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 09:34:04 +0000
committerxians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 09:34:04 +0000
commit9c492f6917dd93ec839847ac921ad789728be7f9 (patch)
tree6bfee9c35f7129eb09faeb6cf2e3742a430bb2f5 /content/renderer
parentab6f6f48879a76071421655e449acc5e9194aa04 (diff)
downloadchromium_src-9c492f6917dd93ec839847ac921ad789728be7f9.zip
chromium_src-9c492f6917dd93ec839847ac921ad789728be7f9.tar.gz
chromium_src-9c492f6917dd93ec839847ac921ad789728be7f9.tar.bz2
Reset the _running flag to allow starting the new source.
The existing code will prevent starting the new source since the flag is still set to true while the source has been stopped. BUG=231823 TEST= 1. Enable screen cast in about:/flags 2. Run https://www.corp.google.com/~perkj/screencast.html 3. Uncheck the checkbox for Use cloning.... 3. Press Start 4. Scroll down to the end of the page can click call. Review URL: https://codereview.chromium.org/13929010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r--content/renderer/media/webrtc_audio_capturer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/renderer/media/webrtc_audio_capturer.cc b/content/renderer/media/webrtc_audio_capturer.cc
index 8e78142..35f25ee 100644
--- a/content/renderer/media/webrtc_audio_capturer.cc
+++ b/content/renderer/media/webrtc_audio_capturer.cc
@@ -315,6 +315,9 @@ void WebRtcAudioCapturer::SetCapturerSource(
source_.swap(old_source);
source_ = source;
current_buffer = buffer_;
+
+ // Reset the flag to allow calling Start() for the new source.
+ running_ = false;
}
const bool no_default_audio_source_exists = !current_buffer;