mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Beta version 1.5.16: Fix audio stucking.
This commit is contained in:
parent
5efe47cfb6
commit
e79ddf2459
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ void Player::start() {
|
||||||
_audio ? _audio->waitingForData() : rpl::never(),
|
_audio ? _audio->waitingForData() : rpl::never(),
|
||||||
_video ? _video->waitingForData() : rpl::never()
|
_video ? _video->waitingForData() : rpl::never()
|
||||||
) | rpl::filter([=] {
|
) | rpl::filter([=] {
|
||||||
return !receivedTillEnd();
|
return !bothReceivedEnough(kBufferFor);
|
||||||
}) | rpl::start_with_next([=] {
|
}) | rpl::start_with_next([=] {
|
||||||
_pausedByWaitingForData = true;
|
_pausedByWaitingForData = true;
|
||||||
updatePausedState();
|
updatePausedState();
|
||||||
|
|
Loading…
Add table
Reference in a new issue