don't resize an encoder if it is not set

pull/80/head
Jeroen Hofstee 2022-09-20 13:10:59 +02:00 committed by Andri Yngvason
parent 1b929afb2c
commit 5b2a062f0e
1 changed files with 2 additions and 1 deletions

View File

@ -1434,7 +1434,8 @@ static int send_desktop_resize(struct nvnc_client* client, struct nvnc_fb* fb)
client->known_width = fb->width; client->known_width = fb->width;
client->known_height = fb->height; client->known_height = fb->height;
encoder_resize(client->encoder, fb->width, fb->height); if (client->encoder)
encoder_resize(client->encoder, fb->width, fb->height);
pixman_region_union_rect(&client->damage, &client->damage, 0, 0, pixman_region_union_rect(&client->damage, &client->damage, 0, 0,
fb->width, fb->height); fb->width, fb->height);