mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Fix crash in round video playback.
This commit is contained in:
@@ -70,7 +70,9 @@ RoundController::RoundController(
|
||||
Auth().data().itemRepaintRequest(
|
||||
) | rpl::start_with_next([=](not_null<const HistoryItem*> item) {
|
||||
if (item == _context) {
|
||||
checkReaderState();
|
||||
crl::on_main(this, [=] {
|
||||
checkReaderState();
|
||||
});
|
||||
}
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ namespace Player {
|
||||
struct TrackState;
|
||||
enum class State;
|
||||
|
||||
class RoundController : private base::Subscriber {
|
||||
class RoundController
|
||||
: public base::has_weak_ptr
|
||||
, private base::Subscriber {
|
||||
struct CreateTag;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user