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

Commit b5aac433 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "Only read timestamps from HAL if not FastCapture" into nyc-mr1-dev

parents 38c75d9d 69ce44d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6246,7 +6246,8 @@ reacquire_wakelock:
        mTimestamp.mTimeNs[ExtendedTimestamp::LOCATION_SERVER] = systemTime();

        // Update server timestamp with kernel stats
        if (mInput->stream->get_capture_position != nullptr) {
        if (mInput->stream->get_capture_position != nullptr
                && mPipeSource.get() == nullptr /* don't obtain for FastCapture, could block */) {
            int64_t position, time;
            int ret = mInput->stream->get_capture_position(mInput->stream, &position, &time);
            if (ret == NO_ERROR) {