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

Commit e715fa6c authored by Sungtak Lee's avatar Sungtak Lee
Browse files

media.c2 aidl: fix timeout calculation of pipe based C2Fence

Fix a bug for timeout calculation of pipe() based C2Fence.

Bug: 254050314
Change-Id: I2c7cc894578028037b66eb63105aa5f9f042b827
parent 1dc7cc18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ private:
        struct timespec ts;
        if (timeoutNs >= 0) {
            ts.tv_sec = int(timeoutNs / 1000000000);
            ts.tv_nsec = timeoutNs;
            ts.tv_nsec = timeoutNs % 1000000000;
        } else {
            ALOGD("polling for indefinite duration requested, but changed to wait for %d sec",
                  kPipeFenceWaitLimitSecs);