fixed freeze on codec change while draw is ongoing

This commit is contained in:
Michael Scherle 2024-10-31 14:02:44 +01:00
parent acd467f057
commit 9ee9f6f245

View File

@ -2383,6 +2383,10 @@ static void marshall_gl_draw(DisplayChannelClient *dcc,
spice_marshall_msg_display_gl_draw(m, &p->draw);
} else if (DCC_TO_DC(dcc)->priv->gl_draw_stream) {
red_marshall_gl_draw_stream(dcc, m);
} else if (dcc->priv->gl_draw_ongoing){
DisplayChannel *display = DCC_TO_DC(dcc);
dcc->priv->gl_draw_ongoing = false;
display_channel_gl_draw_done(display);
} else {
spice_warning("nothing to send to the client");
}