Skip to content

Commit

Permalink
fix initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
notsecure committed Jul 31, 2014
1 parent c0a7cbb commit 7e806ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toxav/toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ ToxAv *toxav_new( Tox *messenger, int32_t max_calls)
av->calls = calloc(sizeof(CallSpecific), 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_cond_init(&av->decode_cond, NULL);

pthread_t temp;
pthread_create(&temp, NULL, toxav_decoding, av);

return av;
}

Expand Down

0 comments on commit 7e806ae

Please sign in to comment.