Merge pull request #2770 from Yuva1024/fix/avplayer-unsynced-test-autostart

test(avplayer): stop the unsynced test racing the player's auto-start
This commit is contained in:
Adrià 2026-10-11 00:59:44 +02:00 committed by GitHub
commit 64baa79b65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1061,7 +1061,8 @@ void TestAutoStartKeepsStartedPlayback() {
}
void TestUnsyncedVideoKeepsUpWithAudio() {
AvPlayerInitData init = InitData(nullptr);
Events events;
AvPlayerInitData init = InitData(&events);
auto* player = sceAvPlayerInit(&init);
Check(player != nullptr, "init failed");
Check(sceAvPlayerSetAvSyncMode(player, 1) == 0, "sync mode rejected");