[fix] flush STREAM_FRASH event when stream closed

This commit is contained in:
dijunkun
2025-04-14 17:15:00 +08:00
parent dce32672a6
commit f891a047d6

View File

@@ -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();