Beta version 1.5.16: Fix audio stucking.

This commit is contained in:
John Preston 2019-03-12 18:57:48 +04:00
parent 5efe47cfb6
commit e79ddf2459
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ void Player::start() {
_audio ? _audio->waitingForData() : rpl::never(),
_video ? _video->waitingForData() : rpl::never()
) | rpl::filter([=] {
return !receivedTillEnd();
return !bothReceivedEnough(kBufferFor);
}) | rpl::start_with_next([=] {
_pausedByWaitingForData = true;
updatePausedState();