diff options
-rw-r--r-- | toxmsi/AV_codec.c | 6 | ||||
-rw-r--r-- | toxmsi/AV_codec.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/toxmsi/AV_codec.c b/toxmsi/AV_codec.c index 82e6a320..8a50c894 100644 --- a/toxmsi/AV_codec.c +++ b/toxmsi/AV_codec.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 | ||
@@ -48,6 +48,8 @@ | |||
48 | #include "phone.h" | 48 | #include "phone.h" |
49 | #include "AV_codec.h" | 49 | #include "AV_codec.h" |
50 | 50 | ||
51 | SDL_Surface *screen; | ||
52 | |||
51 | int display_received_frame(codec_state *cs, AVFrame *r_video_frame) | 53 | int display_received_frame(codec_state *cs, AVFrame *r_video_frame) |
52 | { | 54 | { |
53 | AVPicture pict; | 55 | AVPicture pict; |
diff --git a/toxmsi/AV_codec.h b/toxmsi/AV_codec.h index 641cf486..bf5951d2 100644 --- a/toxmsi/AV_codec.h +++ b/toxmsi/AV_codec.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #include "../toxrtp/toxrtp.h" | 38 | #include "../toxrtp/toxrtp.h" |
39 | #include "../toxcore/tox.h" | 39 | #include "../toxcore/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 | ||
78 | SDL_Surface *screen; | 78 | extern SDL_Surface *screen; |
79 | 79 | ||
80 | typedef struct { | 80 | typedef struct { |
81 | SDL_Overlay *bmp; | 81 | SDL_Overlay *bmp; |