mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix error reporting in toxav_call()
This commit is contained in:
parent
73b2144edc
commit
96a7b7b4fc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user