srt: Factor out a goto statement

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

srt: Factor out a goto statement