don't resize an encoder if it is not set
parent
1b929afb2c
commit
5b2a062f0e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue