mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
red_worker.c: clearing the stream vis_region, after it has been detached
The stream vis_region should be cleared after the stream region was sent to the client losslessly. Otherwise, we might send redundant stream upgrades if we process more drawables that are dependent on the stream region.
This commit is contained in:
parent
b22e82ad57
commit
4eb172f6fe
@ -2646,7 +2646,7 @@ static inline void red_display_detach_stream_gracefully(DisplayChannelClient *dc
|
||||
spice_debug("stream %d: upgrade by linked drawable. sized %d, box ==>",
|
||||
stream_id, stream->current->sized_stream != NULL);
|
||||
rect_debug(&stream->current->red_drawable->bbox);
|
||||
return;
|
||||
goto clear_vis_region;
|
||||
}
|
||||
spice_debug("stream %d: upgrade by drawable. sized %d, box ==>",
|
||||
stream_id, stream->current->sized_stream != NULL);
|
||||
@ -2680,7 +2680,8 @@ static inline void red_display_detach_stream_gracefully(DisplayChannelClient *dc
|
||||
}
|
||||
red_add_surface_area_image(dcc, 0, &upgrade_area, NULL, FALSE);
|
||||
}
|
||||
|
||||
clear_vis_region:
|
||||
region_clear(&agent->vis_region);
|
||||
}
|
||||
|
||||
static inline void red_detach_stream_gracefully(RedWorker *worker, Stream *stream,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user