mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fix initialization order
This commit is contained in:
parent
c0a7cbbf73
commit
7e806aef06
|
@ -174,12 +174,12 @@ ToxAv *toxav_new( Tox *messenger, int32_t max_calls)
|
||||||
av->calls = calloc(sizeof(CallSpecific), max_calls);
|
av->calls = calloc(sizeof(CallSpecific), max_calls);
|
||||||
av->max_calls = max_calls;
|
av->max_calls = max_calls;
|
||||||
|
|
||||||
pthread_t temp;
|
|
||||||
pthread_create(&temp, NULL, toxav_decoding, av);
|
|
||||||
|
|
||||||
pthread_mutex_init(&av->decode_cond_mutex, NULL);
|
pthread_mutex_init(&av->decode_cond_mutex, NULL);
|
||||||
pthread_cond_init(&av->decode_cond, NULL);
|
pthread_cond_init(&av->decode_cond, NULL);
|
||||||
|
|
||||||
|
pthread_t temp;
|
||||||
|
pthread_create(&temp, NULL, toxav_decoding, av);
|
||||||
|
|
||||||
return av;
|
return av;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user