2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Version 1.0.26 for macOS: Fix Clang builds.

Custom build of libc++ for OS X 10.6-10.7 already has C++17 as_const.
Add workaround for Apple Clang has strange issues (freeze and segfault).
This commit is contained in:
John Preston
2017-03-30 15:00:02 +03:00
parent e6d94b5ee7
commit a851497bbf
3 changed files with 9 additions and 2 deletions

View File

@@ -576,7 +576,8 @@ void EditCaptionBox::prepareGifPreview(DocumentData *document) {
auto createGifPreview = [document] {
return (document && document->isAnimation());
};
if (createGifPreview()) {
auto createGifPreviewResult = createGifPreview(); // Clang freeze workaround.
if (createGifPreviewResult) {
_gifPreview = Media::Clip::MakeReader(document->location(), document->data(), [this](Media::Clip::Notification notification) {
clipCallback(notification);
});