esubtitle.cpp: cosmetics and small optimisations