forked from mia/Aegisub
Only register the CSRI subtitles provider if there actually are any CSRI providers available
Originally committed to SVN as r6687.
This commit is contained in:
parent
e6978e9909
commit
9f87a2bacb
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ SubtitlesProvider* SubtitlesProviderFactory::GetProvider() {
|
||||||
///
|
///
|
||||||
void SubtitlesProviderFactory::RegisterProviders() {
|
void SubtitlesProviderFactory::RegisterProviders() {
|
||||||
#ifdef WITH_CSRI
|
#ifdef WITH_CSRI
|
||||||
Register<CSRISubtitlesProvider>("CSRI", false, CSRISubtitlesProvider::GetSubTypes());
|
std::vector<std::string> csri_providers(CSRISubtitlesProvider::GetSubTypes());
|
||||||
|
if (!csri_providers.empty())
|
||||||
|
Register<CSRISubtitlesProvider>("CSRI", false, csri_providers);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_LIBASS
|
#ifdef WITH_LIBASS
|
||||||
Register<LibassSubtitlesProvider>("libass");
|
Register<LibassSubtitlesProvider>("libass");
|
||||||
|
|
Loading…
Reference in a new issue