This commit is contained in:
irungentoo 2015-12-02 22:36:45 -05:00
commit 9c64769331
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -286,12 +286,10 @@ bool toxav_call(ToxAV *av, uint32_t friend_number, uint32_t audio_bit_rate, uint
goto END;
}
ToxAVCall *call = call_new(av, friend_number, error);
ToxAVCall *call = call_new(av, friend_number, &rc);
if (call == NULL) {
rc = TOXAV_ERR_CALL_MALLOC;
if (call == NULL)
goto END;
}
call->audio_bit_rate = audio_bit_rate;
call->video_bit_rate = video_bit_rate;