2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Lock inline HistoryView::Gif when playing fullscreen.

This commit is contained in:
John Preston
2019-12-17 17:30:14 +03:00
parent 51dac66998
commit 10c810ff03
7 changed files with 69 additions and 4 deletions

View File

@@ -883,6 +883,20 @@ crl::time Player::getCurrentReceivedTill(crl::time duration) const {
: result;
}
void Player::lock() {
++_locks;
}
void Player::unlock() {
Expects(_locks > 0);
--_locks;
}
bool Player::locked() const {
return (_locks > 0);
}
rpl::lifetime &Player::lifetime() {
return _lifetime;
}