Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f83d9a75 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I24b0a95d into eclair-mr2

* changes:
  The original delay after which we dropped a frame was too aggressive. 40ms lateness seems more appropriate (about 25fps).
parents 738c4315 650773d0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -572,9 +572,9 @@ void AwesomePlayer::onEvent(int32_t code) {

    int64_t latenessUs = nowUs - timeUs;

    if (latenessUs > 20000) {
        // We're more than 20ms late.
        LOGV("we're late by %lld us (%.2f secs)", latenessUs, latenessUs / 1E6);
    if (latenessUs > 40000) {
        // We're more than 40ms late.
        LOGI("we're late by %lld us (%.2f secs)", latenessUs, latenessUs / 1E6);

        mVideoBuffer->release();
        mVideoBuffer = NULL;