Fix crash and pause in stickers panel with webm.

This commit is contained in:
John Preston 2022-01-25 01:07:06 +03:00
parent 8e749173de
commit f1d9cca119
1 changed files with 2 additions and 2 deletions

View File

@ -2090,13 +2090,13 @@ void StickersListWidget::paintSticker(
sticker.savedFrame.setDevicePixelRatio(cRetinaFactor());
}
set.lottiePlayer->unpause(sticker.lottie);
} else if (sticker.webm && sticker.webm->ready()) {
} else if (sticker.webm && sticker.webm->started()) {
p.drawPixmapLeft(
ppos,
width(),
sticker.webm->current(
{ .frame = size, .keepAlpha = true },
now));
paused ? 0 : now));
} else {
const auto image = media->getStickerSmall();
const auto pixmap = !sticker.savedFrame.isNull()