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:
@@ -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([=] {
|
||||
|
Reference in New Issue
Block a user