Commits on Source (5)
-
Steve Lhomme authored3f110c95
-
Steve Lhomme authored
We're just concatenating the lines in psz_text.
e8f7ac27 -
Steve Lhomme authored
No need to do a lengthy strlen() call each time the concatenated string grows.
1e03b716 -
Steve Lhomme authored
realloc works fine on NULL. The pointer is set in p_subtitle->psz_text which is free'd later. It's OK to free a NULL pointer if there wasn't any line to use.
de7e5074 -
Steve Lhomme authored
No need to set it on each iteration.
1f9b8484