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

Commit 650773d0 authored by Andreas Huber's avatar Andreas Huber
Browse files

The original delay after which we dropped a frame was too aggressive. 40ms...

The original delay after which we dropped a frame was too aggressive. 40ms lateness seems more appropriate (about 25fps).
parent bfa6b2d7
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;