Fixed playing long video sequences with 'replay_mod'.