srt: Factor out last goto

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Merge pull request #21 from dwbuiten/srtgoto2

srt: Factor out last goto