mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Make FallbackListener.onTransformationRequestFinalized() synchronized
FallbackListener.onTransformationRequestFinalized() is called from the AssetLoader thread for audio, and from the GL thread for video. PiperOrigin-RevId: 542851284
This commit is contained in:
parent
90c8f642af
commit
bdd593e0d3
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
* @throws IllegalStateException If called for more tracks than declared in {@link
|
||||
* #setTrackCount(int)}.
|
||||
*/
|
||||
public void onTransformationRequestFinalized(TransformationRequest transformationRequest) {
|
||||
public synchronized void onTransformationRequestFinalized(
|
||||
TransformationRequest transformationRequest) {
|
||||
checkState(trackCount.getAndDecrement() > 0);
|
||||
|
||||
TransformationRequest.Builder fallbackRequestBuilder =
|
||||
|
|
|
|||
Loading…
Reference in a new issue