When gathering CSRI renderers, stick those with "aegisub" in the name at the beginning, so that the shipped copy of VSFilter will be used by default

Originally committed to SVN as r6700.
This commit is contained in:
Thomas Goyne 2012-04-16 23:54:34 +00:00
parent 0f9289dc0f
commit ed27a4eaa4

View file

@ -137,7 +137,11 @@ void CSRISubtitlesProvider::DrawSubtitles(AegiVideoFrame &dst,double time) {
std::vector<std::string> CSRISubtitlesProvider::GetSubTypes() {
std::vector<std::string> final;
for (csri_rend *cur = csri_renderer_default(); cur; cur = csri_renderer_next(cur)) {
final.push_back(csri_renderer_info(cur)->name);
std::string name(csri_renderer_info(cur)->name);
if (name.find("aegisub") != name.npos)
final.insert(final.begin(), name);
else
final.push_back(name);
}
return final;
}