forked from mia/Aegisub
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:
parent
0f9289dc0f
commit
ed27a4eaa4
1 changed files with 6 additions and 2 deletions
|
@ -136,8 +136,12 @@ 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);
|
||||
for (csri_rend *cur = csri_renderer_default(); cur; cur = csri_renderer_next(cur)) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue