diff options
author | John Preston <johnprestonmail@gmail.com> | 2019-12-25 13:12:42 +0300 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2019-12-25 13:12:42 +0300 |
commit | b58420452278e02bdb21d70027c5c53e0cc30b4a (patch) | |
tree | e0f5b5e96cd3c08724c4bb6f43b596b9c78d6302 | |
parent | dc146cb1fe8c2850a3c5ba5dfd663f5a67fea3ab (diff) |
Fix sound stop in streamed videos.
-rw-r--r-- | Telegram/SourceFiles/media/audio/media_audio_loaders.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Telegram/SourceFiles/media/audio/media_audio_loaders.cpp b/Telegram/SourceFiles/media/audio/media_audio_loaders.cpp index 82c0041a35..b249f277c9 100644 --- a/Telegram/SourceFiles/media/audio/media_audio_loaders.cpp +++ b/Telegram/SourceFiles/media/audio/media_audio_loaders.cpp @@ -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); } |