diff options
author | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 20:16:49 +0000 |
---|---|---|
committer | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 20:16:49 +0000 |
commit | 7fb356f9b1f572a2f291a694c43de05c3ef8f3de (patch) | |
tree | 1624bb30586b92387fdf8e23d72ae9f7dc792117 /media/audio/audio_util.h | |
parent | f41576fc2cac0d7d0f7f4602b07b596d667104f4 (diff) | |
download | chromium_src-7fb356f9b1f572a2f291a694c43de05c3ef8f3de.zip chromium_src-7fb356f9b1f572a2f291a694c43de05c3ef8f3de.tar.gz chromium_src-7fb356f9b1f572a2f291a694c43de05c3ef8f3de.tar.bz2 |
Very short-term change: while working on proper long-term solution,
workaround for race condition that causes clicks and bad audio stream.
Yield if reader was called too quickly after previous call, as there
are good chances renderer thread did not fill the buffer yet.
BUG=http://code.google.com/p/chromium/issues/detail?id=61022
Review URL: http://codereview.chromium.org/7755001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_util.h')
-rw-r--r-- | media/audio/audio_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h index ff8f2f0..e9452b2 100644 --- a/media/audio/audio_util.h +++ b/media/audio/audio_util.h @@ -92,6 +92,10 @@ MEDIA_EXPORT uint32 GetActualDataSizeInBytes(base::SharedMemory* shared_memory, MEDIA_EXPORT void SetActualDataSizeInBytes(base::SharedMemory* shared_memory, uint32 shared_memory_size, uint32 actual_data_size); +MEDIA_EXPORT void SetUnknownDataSize(base::SharedMemory* shared_memory, + uint32 shared_memory_size); +MEDIA_EXPORT bool IsUnknownDataSize(base::SharedMemory* shared_memory, + uint32 shared_memory_size); } // namespace media |