2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Init webm player for sticker set thumbnails.

This commit is contained in:
John Preston
2022-01-24 15:33:31 +03:00
parent 10ff71e8f6
commit 20dbf18106
13 changed files with 251 additions and 117 deletions

View File

@@ -1897,7 +1897,7 @@ QSize Gif::countFrameSize() const {
void Gif::clipCallback(Media::Clip::Notification notification) {
using namespace Media::Clip;
switch (notification) {
case NotificationReinit: {
case Notification::Reinit: {
if (_gif) {
if (_gif->state() == State::Error) {
_gif.setBad();
@@ -1926,7 +1926,7 @@ void Gif::clipCallback(Media::Clip::Notification notification) {
update();
} break;
case NotificationRepaint: {
case Notification::Repaint: {
if (_gif && !_gif->currentDisplayed()) {
update();
}