diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 22:07:18 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-17 22:07:18 +0000 |
commit | 3fa131ed261627dbf01646ff4d5a1194492aaaac (patch) | |
tree | 36e397339884c8cd4930f7df233960662cf4a9b3 /chrome/browser/renderer_host/audio_renderer_host.cc | |
parent | 75b63322f51d75b8c5b785ce067f53e21111cc2e (diff) | |
download | chromium_src-3fa131ed261627dbf01646ff4d5a1194492aaaac.zip chromium_src-3fa131ed261627dbf01646ff4d5a1194492aaaac.tar.gz chromium_src-3fa131ed261627dbf01646ff4d5a1194492aaaac.tar.bz2 |
Pause for <video> should have immediate effect on audio
BUG=20351
A bug found while fixing mac audio. IPCAudioSouce transist to a
wrong state after Play() is called. Resulting to pause having
no effect. This will solve the problem of audio keeps playing
a while after it is paused.
Review URL: http://codereview.chromium.org/193095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/audio_renderer_host.cc')
-rw-r--r-- | chrome/browser/renderer_host/audio_renderer_host.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/audio_renderer_host.cc b/chrome/browser/renderer_host/audio_renderer_host.cc index c66e0b13..4b60da8 100644 --- a/chrome/browser/renderer_host/audio_renderer_host.cc +++ b/chrome/browser/renderer_host/audio_renderer_host.cc @@ -151,7 +151,7 @@ void AudioRendererHost::IPCAudioSource::Play() { stream_->Start(this); // Update the state and notify renderer. - state_ = kPaused; + state_ = kPlaying; ViewMsg_AudioStreamState state; state.state = ViewMsg_AudioStreamState::kPlaying; |