mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix some problems in working with rlottie.
This commit is contained in:
parent
8d94cfb61b
commit
b05ea9fc25
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ std::unique_ptr<rlottie::Animation> CreateFromContent(
|
||||||
const auto string = UnpackGzip(content);
|
const auto string = UnpackGzip(content);
|
||||||
Assert(string.size() <= kMaxFileSize);
|
Assert(string.size() <= kMaxFileSize);
|
||||||
|
|
||||||
auto result = rlottie::Animation::loadFromData(string, std::string());
|
auto result = rlottie::Animation::loadFromData(
|
||||||
|
string,
|
||||||
|
std::string(),
|
||||||
|
std::string(),
|
||||||
|
false);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
LOG(("Lottie Error: Parse failed."));
|
LOG(("Lottie Error: Parse failed."));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue