mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 08:44:38 +00:00
Fix sound stop in streamed videos.
This commit is contained in:
parent
dc146cb1fe
commit
b584204522
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user