summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 01:59:55 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 01:59:55 +0000
commit97fce46c1ad6c8b4afa53e513c758bc0bd8bfc60 (patch)
treee3b4bba7e7257147a8a9eb112ab8f2a98620766c /chrome/renderer
parent905ef37a0740434886d17e5edca74529bdf36cc6 (diff)
downloadchromium_src-97fce46c1ad6c8b4afa53e513c758bc0bd8bfc60.zip
chromium_src-97fce46c1ad6c8b4afa53e513c758bc0bd8bfc60.tar.gz
chromium_src-97fce46c1ad6c8b4afa53e513c758bc0bd8bfc60.tar.bz2
Fixes an audio playback regression caused by seeking in audio/video media.
This is a temporary fix to a much larger problem of dealing with Chrome's audio IPC layer. Since a seek is a small amount of time, we keep the audio IPC conversation going by writing 8k of zeros. Before we were telling the audio IPC layer that we were out of data, which technically was a lie (we were just seeking), and as a result the conversation died at that point. TEST=seek around in a video, audio should keep playing and remain in sync BUG=17917 Review URL: http://codereview.chromium.org/160283 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/media/audio_renderer_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc
index 6af48a0..3334a21 100644
--- a/chrome/renderer/media/audio_renderer_impl.cc
+++ b/chrome/renderer/media/audio_renderer_impl.cc
@@ -180,7 +180,7 @@ void AudioRendererImpl::OnRequestPacket(size_t bytes_in_buffer,
request_delay_ = ConvertToDuration(bytes_in_buffer);
}
- // Try to fill in the fulfil the packet request.
+ // Try to fill in the fulfill the packet request.
OnNotifyPacketReady();
}