mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-12-16 20:17:10 +08:00
[fix] flush STREAM_FRASH event when stream closed
This commit is contained in:
@@ -1027,6 +1027,8 @@ void Render::ProcessSdlEvent() {
|
|||||||
sizeof(props->net_traffic_stats_));
|
sizeof(props->net_traffic_stats_));
|
||||||
SDL_SetWindowFullscreen(main_window_, SDL_FALSE);
|
SDL_SetWindowFullscreen(main_window_, SDL_FALSE);
|
||||||
SDL_DestroyTexture(props->stream_texture_);
|
SDL_DestroyTexture(props->stream_texture_);
|
||||||
|
props->stream_texture_ = nullptr;
|
||||||
|
SDL_FlushEvents(STREAM_FRASH, STREAM_FRASH);
|
||||||
memset(audio_buffer_, 0, 720);
|
memset(audio_buffer_, 0, 720);
|
||||||
}
|
}
|
||||||
client_properties_.clear();
|
client_properties_.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user