diff options
-rw-r--r-- | auto_tests/toxav_many_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c index d9c588f7..4ed79e22 100644 --- a/auto_tests/toxav_many_test.c +++ b/auto_tests/toxav_many_test.c | |||
@@ -159,8 +159,6 @@ void *in_thread_call (void *arg) | |||
159 | int step = 0; | 159 | int step = 0; |
160 | int call_idx; | 160 | int call_idx; |
161 | 161 | ||
162 | call_running[this_call->idx] = 1; | ||
163 | |||
164 | const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); | 162 | const int frame_size = (av_DefaultSettings.audio_sample_rate * av_DefaultSettings.audio_frame_duration / 1000); |
165 | int16_t sample_payload[frame_size]; | 163 | int16_t sample_payload[frame_size]; |
166 | randombytes((uint8_t *)sample_payload, sizeof(int16_t) * frame_size); | 164 | randombytes((uint8_t *)sample_payload, sizeof(int16_t) * frame_size); |
@@ -333,8 +331,10 @@ void test_AV_three_calls() | |||
333 | 331 | ||
334 | pthread_mutex_init(&muhmutex, NULL); | 332 | pthread_mutex_init(&muhmutex, NULL); |
335 | 333 | ||
336 | for ( i = 0; i < 3; i++ ) | 334 | for ( i = 0; i < 3; i++ ) { |
335 | call_running[i] = 1; | ||
337 | pthread_create(&status_control.calls[i].tid, NULL, in_thread_call, &status_control.calls[i]); | 336 | pthread_create(&status_control.calls[i].tid, NULL, in_thread_call, &status_control.calls[i]); |
337 | } | ||
338 | 338 | ||
339 | /* Now start 3 calls and they'll run for 10 s */ | 339 | /* Now start 3 calls and they'll run for 10 s */ |
340 | 340 | ||