Skip to content

Commit add5733

Browse files
committed
Version 2.1.2
1 parent bfb9ddb commit add5733

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
CC ?= gcc
16-
CFLAGS ?= -Wall -O2
16+
CFLAGS ?=
1717
APPINDICATOR ?= appindicator3-0.1
1818

1919
GTK = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
@@ -44,6 +44,8 @@ package:
4444
@echo "usage: RELEASE=2. make -B package"
4545

4646
else
47+
CFLAGS += -Wall -O2
48+
4749
JPEG = -I/opt/libjpeg-turbo/include
4850
USBMUXD = -I/opt/libimobiledevice/include
4951
LIBAV = -L/opt/ffmpeg4/lib -lswscale -lavutil

src/av.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ void *DecodeThreadProc(__attribute__((__unused__)) void *args) {
110110
return 0;
111111
}
112112

113+
const char* codec_names[] = {
114+
"jpg", "avc",
115+
};
116+
113117
void *VideoThreadProc(void *args) {
114118
char buf[32];
115119
SOCKET videoSocket = (SOCKET_PTR) args;

src/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef _COMMON_H_
1010
#define _COMMON_H_
1111

12-
#define APP_VER_INT 211
13-
#define APP_VER_STR "2.1.1"
12+
#define APP_VER_INT 212
13+
#define APP_VER_STR "2.1.2"
1414

1515
#define MSG_ERROR(str) ShowError("Error",str)
1616
#define MSG_LASTERROR(str) ShowError(str,strerror(errno))

src/settings.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ enum control_codes {
3636
CB_V_FLIP,
3737
};
3838

39-
enum {
40-
CODEC_JPG = 0,
41-
CODEC_AVC,
42-
};
43-
44-
static const char* codec_names[] = {
45-
"jpg", "avc",
46-
};
47-
4839
struct settings {
4940
char ip[16];
5041
int port;

0 commit comments

Comments
 (0)