diff options
Diffstat (limited to 'auto_tests/toxav_many_test.c')
-rw-r--r-- | auto_tests/toxav_many_test.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c index 18058c1f..6a70ff33 100644 --- a/auto_tests/toxav_many_test.c +++ b/auto_tests/toxav_many_test.c | |||
@@ -174,7 +174,7 @@ void *in_thread_call (void *arg) | |||
174 | 174 | ||
175 | switch ( step ) { | 175 | switch ( step ) { |
176 | case 0: /* CALLER */ | 176 | case 0: /* CALLER */ |
177 | toxav_call(this_call->Caller.av, &call_idx, this_call->Callee.id, TypeVideo, 10); | 177 | toxav_call(this_call->Caller.av, &call_idx, this_call->Callee.id, &av_DefaultSettings, 10); |
178 | call_print(call_idx, "Calling ..."); | 178 | call_print(call_idx, "Calling ..."); |
179 | step++; | 179 | step++; |
180 | break; | 180 | break; |
@@ -182,7 +182,7 @@ void *in_thread_call (void *arg) | |||
182 | case 1: /* CALLEE */ | 182 | case 1: /* CALLEE */ |
183 | if (this_call->Caller.status == Ringing) { | 183 | if (this_call->Caller.status == Ringing) { |
184 | call_print(call_idx, "Callee answers ..."); | 184 | call_print(call_idx, "Callee answers ..."); |
185 | toxav_answer(this_call->Callee.av, 0, TypeVideo); | 185 | toxav_answer(this_call->Callee.av, 0, &av_DefaultSettings); |
186 | step++; | 186 | step++; |
187 | start = time(NULL); | 187 | start = time(NULL); |
188 | } | 188 | } |
@@ -193,11 +193,9 @@ void *in_thread_call (void *arg) | |||
193 | if (this_call->Caller.status == InCall) { /* I think this is okay */ | 193 | if (this_call->Caller.status == InCall) { /* I think this is okay */ |
194 | call_print(call_idx, "Sending rtp ..."); | 194 | call_print(call_idx, "Sending rtp ..."); |
195 | 195 | ||
196 | ToxAvCodecSettings cast = av_DefaultSettings; | ||
197 | |||
198 | c_sleep(1000); /* We have race condition here */ | 196 | c_sleep(1000); /* We have race condition here */ |
199 | toxav_prepare_transmission(this_call->Callee.av, 0, &cast, 1); | 197 | toxav_prepare_transmission(this_call->Callee.av, 0, 3, 0, 1); |
200 | toxav_prepare_transmission(this_call->Caller.av, call_idx, &cast, 1); | 198 | toxav_prepare_transmission(this_call->Caller.av, call_idx, 3, 0, 1); |
201 | 199 | ||
202 | int payload_size = toxav_prepare_audio_frame(this_call->Caller.av, call_idx, prepared_payload, RTP_PAYLOAD_SIZE, | 200 | int payload_size = toxav_prepare_audio_frame(this_call->Caller.av, call_idx, prepared_payload, RTP_PAYLOAD_SIZE, |
203 | sample_payload, frame_size); | 201 | sample_payload, frame_size); |