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

Commit 1213d6f3 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 1f522294: Merge change I24b0a95d into eclair-mr2

Merge commit '1f52229453c3df8eaeda64133bd332b01589354f' into eclair-mr2-plus-aosp

* commit '1f52229453c3df8eaeda64133bd332b01589354f':
  The original delay after which we dropped a frame was too aggressive. 40ms lateness seems more appropriate (about 25fps).
parents d78bc77d f83d9a75
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;