Skip to content

Commit bccd01f

Browse files
committed
Version 2.1.0
1 parent 5693b0e commit bccd01f

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ package:
3535
@echo "usage: RELEASE=2. make package"
3636

3737
else
38-
JPEG =
38+
JPEG = -I/opt/libjpeg-turbo/include
39+
USBMUXD = -I/opt/libimobiledevice/include
3940
LIBAV = -L/opt/ffmpeg4/lib -lswscale -lavutil
40-
USBMUXD =
4141

4242
SRC += /opt/libimobiledevice/lib/libusbmuxd.a
4343
SRC += /opt/libimobiledevice/lib/libplist-2.0.a
4444
SRC += /opt/libjpeg-turbo/lib64/libturbojpeg.a
4545

4646
.PHONY: package
47-
package: clean all
47+
package: all
4848
zip "droidcam_$(RELEASE).zip" \
4949
LICENSE README* icon2.png \
5050
droidcam* install* uninstall* \

src/common.h

Lines changed: 7 additions & 4 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 200
13-
#define APP_VER_STR "2.0.0"
12+
#define APP_VER_INT 210
13+
#define APP_VER_STR "2.1.0"
1414

1515
#define MSG_ERROR(str) ShowError("Error",str)
1616
#define MSG_LASTERROR(str) ShowError(str,strerror(errno))
@@ -33,8 +33,11 @@ void ShowError(const char*, const char*);
3333
#define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0]))
3434

3535
#define errprint(...) fprintf(stderr, __VA_ARGS__)
36-
#define voidprint(...) /* */
37-
#define dbgprint voidprint
36+
#ifdef DEBUG
37+
#define dbgprint errprint
38+
#else
39+
#define dbgprint(...) /* */
40+
#endif
3841

3942
#define VIDEO_INBUF_SZ 4096
4043
#define AUDIO_INBUF_SZ 32

src/droidcam.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,6 @@ static void parse_args(int argc, char *argv[]) {
420420
exit(1);
421421
}
422422

423-
// TODO: this is broken on Debian
424-
// Seems AppIndicator's deprecated and there is no real alternatives
425-
// Example discussion: https://github.com/dino/dino/issues/98
426-
#if 1
427423
static void add_indicator(GtkWidget *window) {
428424
AppIndicator *indicator = app_indicator_new("droidcam", APP_ICON_FILE, APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
429425
GtkWidget *menu = gtk_menu_new();
@@ -448,7 +444,6 @@ static void add_indicator(GtkWidget *window) {
448444
g_signal_connect(G_OBJECT(show_menu_item), "activate", G_CALLBACK(show_window), window);
449445
g_signal_connect(G_OBJECT(exit_menu_item), "activate", G_CALLBACK(exit_window), window);
450446
}
451-
#endif
452447

453448
int main(int argc, char *argv[])
454449
{

0 commit comments

Comments
 (0)