commit | fb57902b97f77064eb16bf3a5fc4ce5d3afd500c | [log] [tgz] |
---|---|---|
author | Sungtak Lee <taklee@google.com> | Tue May 10 06:36:15 2022 +0000 |
committer | Sungtak Lee <taklee@google.com> | Fri May 13 21:30:19 2022 +0000 |
tree | b8d5b4bb9a7a832607a02db9a54b2dc345dc19aa | |
parent | c7da7a0f00c3e1d481fb5582f0b28ae2932d3f1d [diff] |
Codec2Client: Do not overlap setOutputSurface setOutputSurface() can race between a normal surface change and a release surface change. stopUseOutputSurface() may race with setOutputSurface(). Guarantee they run mutually exclusively. Bug: 202903117 Test: atest android.media.cts.MediaCodecTest#testAsyncRelease Test: atest android.media.decoder.cts.AdaptivePlaybackTest Change-Id: Ia1262fccd0c96530f7b8f0056ea2c3acb448a1a2