Copied syncing code from ffplay