diff --git a/src/server.c b/src/server.c index 94fc41b..99ec209 100644 --- a/src/server.c +++ b/src/server.c @@ -1355,13 +1355,14 @@ static enum rfb_encodings choose_frame_encoding(struct nvnc_client* client, case RFB_ENCODING_RAW: case RFB_ENCODING_TIGHT: case RFB_ENCODING_ZRLE: + return client->encodings[i]; #ifdef ENABLE_OPEN_H264 case RFB_ENCODING_OPEN_H264: // h264 is useless for sw frames if (fb->type != NVNC_FB_GBM_BO) break; -#endif return client->encodings[i]; +#endif default: break; }