mirror of
https://github.com/lxsang/antd-wvnc-plugin.git
synced 2024-12-26 03:48:21 +01:00
update to the new lib
This commit is contained in:
parent
dc81888fbf
commit
aebcbb1ab4
5
wvnc.c
5
wvnc.c
@ -11,6 +11,9 @@
|
||||
#include <jpeglib.h>
|
||||
#endif
|
||||
#include <antd/plugin.h>
|
||||
#include <antd/scheduler.h>
|
||||
#include <antd/ws.h>
|
||||
|
||||
#define get_user_data(x) ((wvnc_user_data_t *)x)
|
||||
#define R_SHIFT(x) (0)
|
||||
#define G_SHIFT(x) ((x >= 24) ? 8 :)
|
||||
@ -455,7 +458,7 @@ void open_session(void *data, const char *addr)
|
||||
// seek to beginning of file
|
||||
fseek(fp, 0, SEEK_SET);
|
||||
buffer[len] = '\0';
|
||||
fread(buffer, sizeof(char), len, fp);
|
||||
UNUSED(fread(buffer, sizeof(char), len, fp));
|
||||
fclose(fp);
|
||||
argv[1] = buffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user