summaryrefslogtreecommitdiff
path: root/toxmsi
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-10-28 16:01:29 -0400
committerirungentoo <irungentoo@gmail.com>2013-10-28 16:01:29 -0400
commit415835ce3d2daa9ecd4100e76d58d93b3afa2db0 (patch)
tree755d041ea06a9b1c05fc72687c9dd5c6e98bbe73 /toxmsi
parent988922bdeb94dd83e61ed387b29187ac4c9936e0 (diff)
parent2bdce934373d238778bc77a04198bd3f1481542f (diff)
Merge branch 'master' into harden
Also removed some old, useless loading code.
Diffstat (limited to 'toxmsi')
-rw-r--r--toxmsi/Makefile.inc6
-rw-r--r--toxmsi/phone.c2
-rw-r--r--toxmsi/phone.h2
-rw-r--r--toxmsi/toxmedia.c (renamed from toxmsi/AV_codec.c)8
-rw-r--r--toxmsi/toxmedia.h (renamed from toxmsi/AV_codec.h)8
-rw-r--r--toxmsi/toxmsi.h2
6 files changed, 15 insertions, 13 deletions
diff --git a/toxmsi/Makefile.inc b/toxmsi/Makefile.inc
index 27678bc0..7d620e70 100644
--- a/toxmsi/Makefile.inc
+++ b/toxmsi/Makefile.inc
@@ -3,7 +3,8 @@ if BUILD_AV
3lib_LTLIBRARIES += libtoxmsi.la 3lib_LTLIBRARIES += libtoxmsi.la
4 4
5libtoxmsi_la_include_HEADERS = \ 5libtoxmsi_la_include_HEADERS = \
6 ../toxmsi/toxmsi.h 6 ../toxmsi/toxmsi.h \
7 ../toxmsi/toxmedia.h
7 8
8libtoxmsi_la_includedir = $(includedir)/tox 9libtoxmsi_la_includedir = $(includedir)/tox
9 10
@@ -35,8 +36,7 @@ libtoxmsi_la_LIBS = $(NACL_LIBS)
35noinst_PROGRAMS += phone 36noinst_PROGRAMS += phone
36 37
37phone_SOURCES = ../toxmsi/phone.c \ 38phone_SOURCES = ../toxmsi/phone.c \
38 ../toxmsi/AV_codec.h \ 39 ../toxmsi/toxmedia.c
39 ../toxmsi/AV_codec.c
40 40
41phone_CFLAGS = -I../toxcore \ 41phone_CFLAGS = -I../toxcore \
42 -I../toxrtp \ 42 -I../toxrtp \
diff --git a/toxmsi/phone.c b/toxmsi/phone.c
index f14d0323..432be94c 100644
--- a/toxmsi/phone.c
+++ b/toxmsi/phone.c
@@ -16,7 +16,7 @@
16#include <stdlib.h> 16#include <stdlib.h>
17/* #include <termios.h> Can this be removed? */ 17/* #include <termios.h> Can this be removed? */
18#include <pthread.h> 18#include <pthread.h>
19#include "AV_codec.h" 19#include "toxmedia.h"
20 20
21 21
22 22
diff --git a/toxmsi/phone.h b/toxmsi/phone.h
index d661dcfd..f96aac73 100644
--- a/toxmsi/phone.h
+++ b/toxmsi/phone.h
@@ -8,7 +8,7 @@
8#include "../toxrtp/tests/test_helper.h" 8#include "../toxrtp/tests/test_helper.h"
9#include <assert.h> 9#include <assert.h>
10#include <pthread.h> 10#include <pthread.h>
11#include "AV_codec.h" 11#include "toxmedia.h"
12 12
13/* Define client version */ 13/* Define client version */
14#define _USERAGENT "tox_phone-v.0.2.1" 14#define _USERAGENT "tox_phone-v.0.2.1"
diff --git a/toxmsi/AV_codec.c b/toxmsi/toxmedia.c
index 82e6a320..4c9f5261 100644
--- a/toxmsi/AV_codec.c
+++ b/toxmsi/toxmedia.c
@@ -36,8 +36,8 @@
36#include <libavutil/opt.h> 36#include <libavutil/opt.h>
37#include <AL/al.h> 37#include <AL/al.h>
38#include <AL/alc.h> 38#include <AL/alc.h>
39#include <SDL.h> 39#include <SDL/SDL.h>
40#include <SDL_thread.h> 40#include <SDL/SDL_thread.h>
41#include <pthread.h> 41#include <pthread.h>
42#include <opus/opus.h> 42#include <opus/opus.h>
43 43
@@ -46,7 +46,9 @@
46#include "../toxrtp/toxrtp_message.h" 46#include "../toxrtp/toxrtp_message.h"
47#include "../toxrtp/tests/test_helper.h" 47#include "../toxrtp/tests/test_helper.h"
48#include "phone.h" 48#include "phone.h"
49#include "AV_codec.h" 49#include "toxmedia.h"
50
51SDL_Surface *screen;
50 52
51int display_received_frame(codec_state *cs, AVFrame *r_video_frame) 53int display_received_frame(codec_state *cs, AVFrame *r_video_frame)
52{ 54{
diff --git a/toxmsi/AV_codec.h b/toxmsi/toxmedia.h
index 641cf486..7eea39ae 100644
--- a/toxmsi/AV_codec.h
+++ b/toxmsi/toxmedia.h
@@ -35,10 +35,10 @@
35#include <pthread.h> 35#include <pthread.h>
36#include <AL/al.h> 36#include <AL/al.h>
37#include <AL/alc.h> 37#include <AL/alc.h>
38#include "../toxrtp/toxrtp.h" 38#include "toxrtp.h"
39#include "../toxcore/tox.h" 39#include "tox.h"
40 40
41#include <SDL.h> 41#include <SDL/SDL.h>
42#include <opus/opus.h> 42#include <opus/opus.h>
43 43
44/* ffmpeg VP8 codec ID */ 44/* ffmpeg VP8 codec ID */
@@ -75,7 +75,7 @@
75#define DEFAULT_WEBCAM "0" 75#define DEFAULT_WEBCAM "0"
76#endif 76#endif
77 77
78SDL_Surface *screen; 78extern SDL_Surface *screen;
79 79
80typedef struct { 80typedef struct {
81 SDL_Overlay *bmp; 81 SDL_Overlay *bmp;
diff --git a/toxmsi/toxmsi.h b/toxmsi/toxmsi.h
index 69d5144a..d8985c64 100644
--- a/toxmsi/toxmsi.h
+++ b/toxmsi/toxmsi.h
@@ -28,7 +28,7 @@
28#define _MSI_IMPL_H_ 28#define _MSI_IMPL_H_
29 29
30#include <inttypes.h> 30#include <inttypes.h>
31#include "../toxcore/tox.h" 31#include "tox.h"
32#include <pthread.h> 32#include <pthread.h>
33 33
34#define MCBTYPE void 34#define MCBTYPE void