Merge "After seeking display the first new video frame right away without concern for A/V sync. This looks much more responsive to the user." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
567b2bd146
@@ -1248,6 +1248,7 @@ void AwesomePlayer::onVideoEvent() {
|
||||
mVideoTimeUs = timeUs;
|
||||
}
|
||||
|
||||
bool wasSeeking = mSeeking;
|
||||
finishSeekIfNecessary(timeUs);
|
||||
|
||||
TimeSource *ts = (mFlags & AUDIO_AT_EOS) ? &mSystemTimeSource : mTimeSource;
|
||||
@@ -1268,6 +1269,11 @@ void AwesomePlayer::onVideoEvent() {
|
||||
|
||||
int64_t latenessUs = nowUs - timeUs;
|
||||
|
||||
if (wasSeeking) {
|
||||
// Let's display the first frame after seeking right away.
|
||||
latenessUs = 0;
|
||||
}
|
||||
|
||||
if (mRTPSession != NULL) {
|
||||
// We'll completely ignore timestamps for gtalk videochat
|
||||
// and we'll play incoming video as fast as we get it.
|
||||
|
||||
Reference in New Issue
Block a user