mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 20:04:09 +00:00
display-channel: Inline red_migrate_display function
The only caller only called that function. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
ee5cdb7e2f
commit
62bc14d81d
@ -2633,8 +2633,10 @@ static void display_channel_disconnect(RedChannelClient *rcc)
|
||||
red_channel_client_disconnect(rcc);
|
||||
}
|
||||
|
||||
static void red_migrate_display(DisplayChannel *display, RedChannelClient *rcc)
|
||||
static void display_channel_migrate(RedChannelClient *rcc)
|
||||
{
|
||||
DisplayChannel *display = DISPLAY_CHANNEL(red_channel_client_get_channel(rcc));
|
||||
|
||||
/* We need to stop the streams, and to send upgrade_items to the client.
|
||||
* Otherwise, (1) the client might display lossy regions that we don't track
|
||||
* (streams are not part of the migration data) (2) streams_timeout may occur
|
||||
@ -2651,12 +2653,6 @@ static void red_migrate_display(DisplayChannel *display, RedChannelClient *rcc)
|
||||
}
|
||||
}
|
||||
|
||||
static void display_channel_migrate(RedChannelClient *rcc)
|
||||
{
|
||||
DisplayChannel *display = DISPLAY_CHANNEL(red_channel_client_get_channel(rcc));
|
||||
red_migrate_display(display, rcc);
|
||||
}
|
||||
|
||||
void display_channel_set_image_compression(DisplayChannel *display,
|
||||
SpiceImageCompression image_compression)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user