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

Commit 68b38cf7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix AudioFlinger crash after playing overnight." into main am: 85ee025d

parents d024fd74 85ee025d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -450,6 +450,10 @@ Status TrackHandle::getTimestamp(media::AudioTimestampInternal* timestamp,
    if (*_aidl_return != OK) {
        return Status::ok();
    }

    // restrict position modulo INT_MAX to avoid integer sanitization abort
    legacy.mPosition &= INT_MAX;

    *timestamp = legacy2aidl_AudioTimestamp_AudioTimestampInternal(legacy).value();
    return Status::ok();
}