diff options
author | Tux3 / Mlkj / !Lev.uXFMLA <tux3@users.noreply.github.com> | 2015-01-04 18:35:50 +0100 |
---|---|---|
committer | Tux3 / Mlkj / !Lev.uXFMLA <tux3@users.noreply.github.com> | 2015-01-04 18:35:50 +0100 |
commit | 4f4967a45efa6e189af217ce0460c937e98c598a (patch) | |
tree | 308633cec7ebde1dbb8bc16539312693568c467b | |
parent | c09b57549b37ec5f6c3165ced1518137223e1079 (diff) |
toxav_prepare_transmission: More descriptive error
When trying to prepare an already active call, return av_ErrorAlreadyInCallWithPeer not av_ErrorNoCall
-rw-r--r-- | toxav/toxav.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
277 | if (call->active) { | 277 | if (call->active) { |
278 | pthread_mutex_unlock(call->mutex); | 278 | pthread_mutex_unlock(call->mutex); |
279 | LOGGER_ERROR("Error while starting RTP session: call already active!\n"); | 279 | LOGGER_ERROR("Error while starting RTP session: call already active!\n"); |
280 | return av_ErrorNoCall; | 280 | return av_ErrorAlreadyInCallWithPeer; |
281 | } | 281 | } |
282 | 282 | ||
283 | if (pthread_mutex_init(call->mutex_encoding_audio, NULL) != 0 | 283 | if (pthread_mutex_init(call->mutex_encoding_audio, NULL) != 0 |