2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix stickers lagging on macOS.

This commit is contained in:
John Preston
2019-05-28 13:39:38 +02:00
parent ab16c88473
commit ff0ff1d99c
9 changed files with 56 additions and 22 deletions

View File

@@ -13,7 +13,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "media/streaming/media_streaming_video_track.h"
#include "media/audio/media_audio.h" // for SupportsSpeedControl()
#include "data/data_document.h" // for DocumentData::duration()
#include "core/sandbox.h" // for widgetUpdateRequests() producer
namespace Media {
namespace Streaming {
@@ -658,7 +657,7 @@ void Player::start() {
}
}, _sessionLifetime);
Core::Sandbox::Instance().widgetUpdateRequests(
crl::on_main_update_requests(
) | rpl::filter([=] {
return !_videoFinished;
}) | rpl::start_with_next([=] {