Martin Gordon has been jailed for five years after being filmed brandishing a pistol in the street in Dudley.