diff options
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r-- | toxav/toxav.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c index 0e94e5dd..dbc06587 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c | |||
@@ -249,8 +249,8 @@ void toxav_iterate(ToxAV* av) | |||
249 | } | 249 | } |
250 | LOGGED_UNLOCK(av->mutex); | 250 | LOGGED_UNLOCK(av->mutex); |
251 | 251 | ||
252 | // av->interval = rc < av->dmssa ? 0 : (rc - av->dmssa); | 252 | av->interval = rc < av->dmssa ? 0 : (rc - av->dmssa); |
253 | av->interval = rc < 5 ? 1: rc - 5; | 253 | // av->interval = rc < 5 ? 1: rc - 5; |
254 | av->dmsst += current_time_monotonic() - start; | 254 | av->dmsst += current_time_monotonic() - start; |
255 | 255 | ||
256 | if (++av->dmssc == 3) { | 256 | if (++av->dmssc == 3) { |
@@ -993,7 +993,7 @@ void qc_do(ToxAVCall* call) | |||
993 | LOGGER_DEBUG("Suggesting lower bitrate for audio..."); | 993 | LOGGER_DEBUG("Suggesting lower bitrate for audio..."); |
994 | call->time_audio_good = 0; | 994 | call->time_audio_good = 0; |
995 | call->last_bad_audio_bit_rate = call->audio_bit_rate; | 995 | call->last_bad_audio_bit_rate = call->audio_bit_rate; |
996 | invoke_call_state(call->av, call->friend_id, TOXAV_CALL_STATE_LOWER_AUDIO_BITRATE); | 996 | invoke_call_state(call->av, call->friend_id, TOXAV_CALL_STATE_DECREASE_AUDIO_BITRATE); |
997 | break; | 997 | break; |
998 | case rtp_StateGood: | 998 | case rtp_StateGood: |
999 | if (call->time_audio_good == 0) | 999 | if (call->time_audio_good == 0) |
@@ -1017,7 +1017,7 @@ void qc_do(ToxAVCall* call) | |||
1017 | LOGGER_DEBUG("Suggesting lower bitrate for video..."); | 1017 | LOGGER_DEBUG("Suggesting lower bitrate for video..."); |
1018 | call->time_video_good = 0; | 1018 | call->time_video_good = 0; |
1019 | call->last_bad_video_bit_rate = call->video_bit_rate; | 1019 | call->last_bad_video_bit_rate = call->video_bit_rate; |
1020 | invoke_call_state(call->av, call->friend_id, TOXAV_CALL_STATE_LOWER_VIDEO_BITRATE); | 1020 | invoke_call_state(call->av, call->friend_id, TOXAV_CALL_STATE_DECREASE_VIDEO_BITRATE); |
1021 | break; | 1021 | break; |
1022 | case rtp_StateGood: | 1022 | case rtp_StateGood: |
1023 | if (call->time_video_good == 0) | 1023 | if (call->time_video_good == 0) |