mirror of https://github.com/procxx/kepka.git
Fix crash in round video playback.
This commit is contained in:
parent
53a719e1b1
commit
b420f5b41b
|
@ -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…
Reference in New Issue