diff options
author | Andreas Huber <andih@google.com> | 2010-08-10 11:18:36 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-10 11:38:18 -0700 |
commit | f8ca90452ff3e252f20de38f1c3eee524c808c3e (patch) | |
tree | f750ba5ede661ba693e727f9de8b88e4d0d6bb41 /media/libstagefright/AwesomePlayer.cpp | |
parent | def871da284aa51f129943a86d44ba9ee9d68d28 (diff) | |
download | frameworks_av-f8ca90452ff3e252f20de38f1c3eee524c808c3e.zip frameworks_av-f8ca90452ff3e252f20de38f1c3eee524c808c3e.tar.gz frameworks_av-f8ca90452ff3e252f20de38f1c3eee524c808c3e.tar.bz2 |
We're now going to ignore timestamps completely in gtalk video conferencing, playing video as soon as it comes in. We also make up fake timestamps in the rtp code, ignoring rtcp SR information to enable early startup.
Change-Id: Idc3df74b42000f7a6aa3eae090718dc9d9c4186f
Diffstat (limited to 'media/libstagefright/AwesomePlayer.cpp')
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index e426fca..b16a136 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -1019,6 +1019,12 @@ void AwesomePlayer::onVideoEvent() { int64_t latenessUs = nowUs - timeUs; + if (mRTPSession != NULL) { + // We'll completely ignore timestamps for gtalk videochat + // and we'll play incoming video as fast as we get it. + latenessUs = 0; + } + if (latenessUs > 40000) { // We're more than 40ms late. LOGV("we're late by %lld us (%.2f secs)", latenessUs, latenessUs / 1E6); |