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

View File

@ -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();