At risk of unleashing the wrath of the Urban horde, on watching the video, the whip was being flicked rather than 'swung'. I doubt if it injured the horse in any way.
I do agree with the premise that you should not hit animals though, and would like to see whips removed from horse racing, where the horse is struck much harder than Dujardin did.