Fix sound stop in streamed videos.

This commit is contained in:
John Preston 2019-12-25 13:12:42 +03:00
parent dc146cb1fe
commit b584204522

View File

@ -194,7 +194,7 @@ void Loaders::loadData(AudioMsgId audio, crl::time positionMs) {
errAtStart = false;
} else if (res == Result::Wait) {
waiting = (samples.size() < kPlaybackBufferSize)
&& !l->forceToBuffer();
&& (!samplesCount || !l->forceToBuffer());
if (waiting) {
l->saveDecodedSamples(&samples, &samplesCount);
}