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

Commit 0d83baaa authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "AudioFlinger: Send down HW_AV_SYNC only if track has the flag"

parents 04d22dd6 6eff0ffb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -976,9 +976,10 @@ sp<IAudioTrack> AudioFlinger::createTrack(const CreateTrackInput& input,
                }
            }
        }

        if ((output.flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC) == AUDIO_OUTPUT_FLAG_HW_AV_SYNC) {
            setAudioHwSyncForSession_l(thread, sessionId);
        }
    }

    if (lStatus != NO_ERROR) {
        // remove local strong reference to Client before deleting the Track so that the