summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxav/toxav.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c
index 3d4004cf..448ce3f8 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -286,12 +286,10 @@ bool toxav_call(ToxAV *av, uint32_t friend_number, uint32_t audio_bit_rate, uint
286 goto END; 286 goto END;
287 } 287 }
288 288
289 ToxAVCall *call = call_new(av, friend_number, error); 289 ToxAVCall *call = call_new(av, friend_number, &rc);
290 290
291 if (call == NULL) { 291 if (call == NULL)
292 rc = TOXAV_ERR_CALL_MALLOC;
293 goto END; 292 goto END;
294 }
295 293
296 call->audio_bit_rate = audio_bit_rate; 294 call->audio_bit_rate = audio_bit_rate;
297 call->video_bit_rate = video_bit_rate; 295 call->video_bit_rate = video_bit_rate;