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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user