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

Commit a8cb431d authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audioflinger: fix duplicating track start with a2dp output suspended" into udc-dev

parents 119e0c21 4edbd8c7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4110,8 +4110,9 @@ NO_THREAD_SAFETY_ANALYSIS // manual locking of AudioFlinger

            // signal actual start of output stream when the render position reported by the kernel
            // starts moving.
            if (!mStandby && !mHalStarted && mKernelPositionOnStandby !=
                    mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL]) {
            if (!mHalStarted && ((isSuspended() && (mBytesWritten != 0)) || (!mStandby
                    && (mKernelPositionOnStandby
                            != mTimestamp.mPosition[ExtendedTimestamp::LOCATION_KERNEL])))) {
                mHalStarted = true;
                mWaitHalStartCV.broadcast();
            }