[Spice-devel] [PATCH spice-server 2/6] video-stream: Reuse display variable
Frediano Ziglio
fziglio at redhat.com
Fri Dec 8 15:55:20 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/video-stream.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/video-stream.c b/server/video-stream.c
index 4830705f..89f94ffb 100644
--- a/server/video-stream.c
+++ b/server/video-stream.c
@@ -851,9 +851,9 @@ static void dcc_detach_stream_gracefully(DisplayChannelClient *dcc,
stream_id, stream->current != NULL);
rect_debug(&upgrade_area);
if (update_area_limit) {
- display_channel_draw_until(DCC_TO_DC(dcc), &upgrade_area, 0, update_area_limit);
+ display_channel_draw_until(display, &upgrade_area, 0, update_area_limit);
} else {
- display_channel_draw(DCC_TO_DC(dcc), &upgrade_area, 0);
+ display_channel_draw(display, &upgrade_area, 0);
}
dcc_add_surface_area_image(dcc, 0, &upgrade_area, NULL, FALSE);
}
--
2.14.3
More information about the Spice-devel
mailing list