mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 14:50:24 +00:00
Fix crash on failed streaming.
This commit is contained in:
parent
91bdb66f0d
commit
f0963a332a
@ -442,7 +442,8 @@ void Instance::stop(AudioMsgId::Type type) {
|
||||
void Instance::playPause(AudioMsgId::Type type) {
|
||||
if (const auto data = getData(type)) {
|
||||
if (data->streamed) {
|
||||
if (data->streamed->player.finished()) {
|
||||
if (data->streamed->player.finished()
|
||||
|| data->streamed->player.failed()) {
|
||||
auto options = Streaming::PlaybackOptions();
|
||||
options.mode = Streaming::Mode::Audio;
|
||||
options.audioId = data->streamed->id;
|
||||
|
Loading…
Reference in New Issue
Block a user