A senior police officer said lessons were learned after protests in Southampton last summer.