Handle cleared MPV entry during fallback failure

This commit is contained in:
2026-11-07 10:51:47 -08:00
parent f80fd99211
commit 907984d241
2 changed files with 14 additions and 1 deletions
@@ -119,6 +119,9 @@ test("failure is correlated from MPV end-file entry id without querying a cleare
assert.notEqual(command, "get_property", "failure correlation must use the emitted entry id");
return { data: [] };
};
player.activeEntryId = null;
player.activeUrl = null;
player.currentFile = null;
send(player, { reason: "error", file_error: "network unavailable" }, 42);
await settle();
assert.deepEqual(starts, [url]);