mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +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_));
|
||||
SDL_SetWindowFullscreen(main_window_, SDL_FALSE);
|
||||
SDL_DestroyTexture(props->stream_texture_);
|
||||
props->stream_texture_ = nullptr;
|
||||
SDL_FlushEvents(STREAM_FRASH, STREAM_FRASH);
|
||||
memset(audio_buffer_, 0, 720);
|
||||
}
|
||||
client_properties_.clear();
|
||||
|
||||
Reference in New Issue
Block a user