osukey/osu.Game
Dean Herbert 11cf04eed1 Fix frames potentially getting added to spectator replay in wrong format
The way spectator currently works, the `Spectator` screen is responsible
for adding new frames to the replay, even when it has a child
(`SpectatorPlayer`) present.

There was a possibility that a new play had already started, and on
returning to the Spectator screen (to initialise the new play) there
would be a brief period where the Player instance is still reading from
the replay, the `userBeganPlaying` call had not yet finished
initialising the new target replay, and `userSentFrames` is run
(asynchronously), writing frames to the previous replay using the
incorrect ruleset instance).

To make this work, it doesn't `Schedule` frame addition to the replay
(making things a bit unsafe). Changing this itself isn't such a simple
one to do, so I instead opted to fix this via locking.

Closes https://github.com/ppy/osu/issues/10777.
2020-11-11 13:39:43 +09:00
..
2020-09-19 15:13:52 -05:00
2020-11-09 19:42:00 +09:00
2020-11-01 18:47:40 +01:00
2020-11-01 18:51:39 +01:00
2020-10-20 00:46:08 +02:00
2020-11-05 17:26:41 +09:00
2020-10-16 12:58:34 +09:00
2020-11-10 20:29:29 +09:00