From d26b64a5bb89d6e1c5e0d3b992e56f2746658215 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 13 Feb 2025 19:08:45 +0400 Subject: [PATCH] Fix crash in video messages. --- Telegram/SourceFiles/history/view/media/history_view_gif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp index 63be75784..4fd72b121 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp @@ -1887,7 +1887,7 @@ void Gif::updateStatusText() const { const auto round = activeRoundStreamed(); const auto own = activeOwnStreamed(); if (round || (own && _data->isVideoFile())) { - const auto frozen = !own->frozenFrame.isNull(); + const auto frozen = own && !own->frozenFrame.isNull(); const auto streamed = round ? round : &own->instance; const auto state = streamed->player().prepareLegacyState(); if (state.length) {