From 4f4967a45efa6e189af217ce0460c937e98c598a Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sun, 4 Jan 2015 18:35:50 +0100 Subject: [PATCH] toxav_prepare_transmission: More descriptive error When trying to prepare an already active call, return av_ErrorAlreadyInCallWithPeer not av_ErrorNoCall --- toxav/toxav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxav/toxav.c b/toxav/toxav.c index 384ba360..f8605fd5 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -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