mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-27 09:45:02 +00:00
Beta version 1.5.16: Fix audio stucking.
This commit is contained in:
parent
5efe47cfb6
commit
e79ddf2459
@ -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…
Reference in New Issue
Block a user