mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in round video playback.
This commit is contained in:
parent
53a719e1b1
commit
b420f5b41b
2 changed files with 6 additions and 2 deletions
|
@ -70,7 +70,9 @@ RoundController::RoundController(
|
||||||
Auth().data().itemRepaintRequest(
|
Auth().data().itemRepaintRequest(
|
||||||
) | rpl::start_with_next([=](not_null<const HistoryItem*> item) {
|
) | rpl::start_with_next([=](not_null<const HistoryItem*> item) {
|
||||||
if (item == _context) {
|
if (item == _context) {
|
||||||
checkReaderState();
|
crl::on_main(this, [=] {
|
||||||
|
checkReaderState();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,9 @@ namespace Player {
|
||||||
struct TrackState;
|
struct TrackState;
|
||||||
enum class State;
|
enum class State;
|
||||||
|
|
||||||
class RoundController : private base::Subscriber {
|
class RoundController
|
||||||
|
: public base::has_weak_ptr
|
||||||
|
, private base::Subscriber {
|
||||||
struct CreateTag;
|
struct CreateTag;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Reference in a new issue