The evolution of a coronal streamer prior to mass ejection