mirror of https://github.com/procxx/kepka.git
Version 1.7.3: Fix possible stack overflow.
This commit is contained in:
parent
9fce11b672
commit
caf1af8963
|
@ -65,6 +65,7 @@ struct Instance::Streamed {
|
||||||
Streaming::Player player;
|
Streaming::Player player;
|
||||||
Streaming::Information info;
|
Streaming::Information info;
|
||||||
View::PlaybackProgress progress;
|
View::PlaybackProgress progress;
|
||||||
|
bool clearing = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
Instance::Streamed::Streamed(
|
Instance::Streamed::Streamed(
|
||||||
|
@ -164,9 +165,10 @@ void Instance::setCurrent(const AudioMsgId &audioId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Instance::clearStreamed(not_null<Data*> data) {
|
void Instance::clearStreamed(not_null<Data*> data) {
|
||||||
if (!data->streamed) {
|
if (!data->streamed || data->streamed->clearing) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
data->streamed->clearing = true;
|
||||||
data->streamed->player.stop();
|
data->streamed->player.stop();
|
||||||
data->isPlaying = false;
|
data->isPlaying = false;
|
||||||
requestRoundVideoResize();
|
requestRoundVideoResize();
|
||||||
|
|
Loading…
Reference in New Issue