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

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

am 5884468b: am 1f522294: Merge change I24b0a95d into eclair-mr2

Merge commit '5884468b448a5e2810d2ae421b69cc9c18a1a2f5'

* commit '5884468b448a5e2810d2ae421b69cc9c18a1a2f5':
  The original delay after which we dropped a frame was too aggressive. 40ms lateness seems more appropriate (about 25fps).
parents 8c3097f8 1213d6f3
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;