diff options
author | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 00:41:32 +0000 |
---|---|---|
committer | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 00:41:32 +0000 |
commit | 60bbbbde53dace07e8dbb383aace4a46c3b8276b (patch) | |
tree | bfe756e577ba2f059587e3816515301ec6b95abc /chrome/browser/chrome_browser_main.h | |
parent | 174963675bf92d06bf24b251efa46ddee3475b8e (diff) | |
download | chromium_src-60bbbbde53dace07e8dbb383aace4a46c3b8276b.zip chromium_src-60bbbbde53dace07e8dbb383aace4a46c3b8276b.tar.gz chromium_src-60bbbbde53dace07e8dbb383aace4a46c3b8276b.tar.bz2 |
Fix an issue that audio and video may run out of sync
This CL fixes 3 issues:
1. In ProcessPendingEvents(), if there is a non-seek pending event, UpdateTimestamps() will not get called.
This is probably the number 1 reason that a/v lose sync.
2. MSP use its internal clock to estimate the current presentation time.
However, hardware may consume data at a different rate.
Passing the current frame position from AudioTrack to MSP so we get a better estimation of the current time.
3. When config change comes, We don't need to reset the clock if audio decoder is not recreated.
BUG=351722
Review URL: https://codereview.chromium.org/215783002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263754 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main.h')
0 files changed, 0 insertions, 0 deletions