diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-07-29 05:16:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-07-29 05:16:57 +0200 |
commit | 43e7de19358f730ee18d690a993e97a5195b80c9 (patch) | |
tree | a132a8cf5784d7a62a58dc08acf9a0e062bc5539 /src/StringUtils.cpp | |
parent | da9836a92ef69bb93e521985976db0322e2d5316 (diff) |
Faster video loading/error when not using xxx plugin (disable ytdl)
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r-- | src/StringUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp index 96fdaeb..9820d29 100644 --- a/src/StringUtils.cpp +++ b/src/StringUtils.cpp @@ -103,7 +103,7 @@ namespace QuickMedia { size_t str_find_case_insensitive(const std::string &str, size_t start_index, const char *substr, size_t substr_len) { auto it = std::search(str.begin() + start_index, str.end(), substr, substr + substr_len, [](char c1, char c2) { - return std::toupper(c1) == std::toupper(c2); + return to_upper(c1) == to_upper(c2); }); if(it == str.end()) return std::string::npos; |