mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
toxav_prepare_transmission: More descriptive error
When trying to prepare an already active call, return av_ErrorAlreadyInCallWithPeer not av_ErrorNoCall
This commit is contained in:
parent
c09b57549b
commit
4f4967a45e
|
@ -277,7 +277,7 @@ int toxav_prepare_transmission ( ToxAv *av, int32_t call_index, int support_vide
|
|||
if (call->active) {
|
||||
pthread_mutex_unlock(call->mutex);
|
||||
LOGGER_ERROR("Error while starting RTP session: call already active!\n");
|
||||
return av_ErrorNoCall;
|
||||
return av_ErrorAlreadyInCallWithPeer;
|
||||
}
|
||||
|
||||
if (pthread_mutex_init(call->mutex_encoding_audio, NULL) != 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user