mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-27 07:52:57 +02:00
Fix crash on failed streaming.
This commit is contained in:
parent
91bdb66f0d
commit
f0963a332a
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue