* srt2vtt (read-sub-rip): Test for EOF object.
((start end) (parse-time-span (read-line port)))
((lines) (let loop ((lines '()))
(let ((line (read-line port)))
- (if (and (string-null? line)
- ;; A subtitle may be a blank line!
- (not (null? lines)))
+ (if (or (eof-object? line)
+ (and (string-null? line)
+ ;; A subtitle may be a blank line!
+ (not (null? lines))))
lines
(loop (cons line lines)))))))
(make-subtitle id start end lines)))