Use raw encoding by default if no encoding has been selected
This complies with the standard.pull/42/head
parent
569ad287c5
commit
7fb2215c0f
|
@ -937,7 +937,7 @@ static enum rfb_encodings choose_frame_encoding(struct nvnc_client* client)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return RFB_ENCODING_RAW;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_client_update_fb(void* work)
|
static void do_client_update_fb(void* work)
|
||||||
|
@ -947,11 +947,6 @@ static void do_client_update_fb(void* work)
|
||||||
struct nvnc_fb* fb = update->fb;
|
struct nvnc_fb* fb = update->fb;
|
||||||
|
|
||||||
enum rfb_encodings encoding = choose_frame_encoding(client);
|
enum rfb_encodings encoding = choose_frame_encoding(client);
|
||||||
if (encoding == -1) {
|
|
||||||
stream_close(client->net_stream);
|
|
||||||
client_unref(client);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!client->has_pixfmt) {
|
if (!client->has_pixfmt) {
|
||||||
rfb_pixfmt_from_fourcc(&client->pixfmt, fb->fourcc_format);
|
rfb_pixfmt_from_fourcc(&client->pixfmt, fb->fourcc_format);
|
||||||
|
|
Loading…
Reference in New Issue