diff options
Diffstat (limited to 'toxav/toxmedia.h')
-rw-r--r-- | toxav/toxmedia.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/toxav/toxmedia.h b/toxav/toxmedia.h index 5037365c..aad299bb 100644 --- a/toxav/toxmedia.h +++ b/toxav/toxmedia.h | |||
@@ -70,7 +70,7 @@ | |||
70 | #define DEFAULT_WEBCAM "/dev/video0" | 70 | #define DEFAULT_WEBCAM "/dev/video0" |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #ifdef defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 73 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
74 | #define VIDEO_DRIVER "vfwcap" | 74 | #define VIDEO_DRIVER "vfwcap" |
75 | #define DEFAULT_WEBCAM "0" | 75 | #define DEFAULT_WEBCAM "0" |
76 | #endif | 76 | #endif |
@@ -126,11 +126,11 @@ typedef struct { | |||
126 | /* rendered video picture, ready for display */ | 126 | /* rendered video picture, ready for display */ |
127 | VideoPicture video_picture; | 127 | VideoPicture video_picture; |
128 | 128 | ||
129 | rtp_session_t *_rtp_video; | 129 | RTPSession *_rtp_video; |
130 | rtp_session_t *_rtp_audio; | 130 | RTPSession *_rtp_audio; |
131 | int socket; | ||
132 | Networking_Core *_networking; | ||
133 | 131 | ||
132 | Tox* _messenger; | ||
133 | |||
134 | pthread_t encode_audio_thread; | 134 | pthread_t encode_audio_thread; |
135 | pthread_t encode_video_thread; | 135 | pthread_t encode_video_thread; |
136 | 136 | ||
@@ -143,11 +143,8 @@ typedef struct { | |||
143 | uint8_t quit; | 143 | uint8_t quit; |
144 | SDL_Event SDL_event; | 144 | SDL_Event SDL_event; |
145 | 145 | ||
146 | msi_session_t *_msi; | 146 | MSISession *_msi; |
147 | uint32_t _frame_rate; | 147 | uint32_t _frame_rate; |
148 | uint16_t _send_port, _recv_port; | ||
149 | int _tox_sock; | ||
150 | //pthread_id _medialoop_id; | ||
151 | 148 | ||
152 | } codec_state; | 149 | } codec_state; |
153 | 150 | ||
@@ -161,7 +158,7 @@ int video_encoder_refresh(codec_state *cs, int bps); | |||
161 | void *encode_video_thread(void *arg); | 158 | void *encode_video_thread(void *arg); |
162 | void *encode_audio_thread(void *arg); | 159 | void *encode_audio_thread(void *arg); |
163 | int video_decoder_refresh(codec_state *cs, int width, int height); | 160 | int video_decoder_refresh(codec_state *cs, int width, int height); |
164 | int handle_rtp_video_packet(codec_state *cs, rtp_msg_t *r_msg); | 161 | int handle_rtp_video_packet(codec_state *cs, RTPMessage *r_msg); |
165 | void *decode_video_thread(void *arg); | 162 | void *decode_video_thread(void *arg); |
166 | void *decode_audio_thread(void *arg); | 163 | void *decode_audio_thread(void *arg); |
167 | 164 | ||