Skip to content

Commit 5f648f8

Browse files
committed
less verbose
1 parent a021ee9 commit 5f648f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

toxav/toxav.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ bool toxav_audio_send_frame(ToxAV *av, uint32_t friend_number, const int16_t *pc
13001300
// LOGGER_API_DEBUG(av->tox, "opus:enc:time=%d", (int)(opus_encoding_time));
13011301

13021302
if (vrc < 0) {
1303-
LOGGER_API_WARNING(av->tox, "Failed to encode frame %s", opus_strerror(vrc));
1303+
LOGGER_API_DEBUG(av->tox, "Failed to encode frame %s", opus_strerror(vrc));
13041304
pthread_mutex_unlock(call->mutex_audio);
13051305
rc = TOXAV_ERR_SEND_FRAME_INVALID;
13061306
goto RETURN;
@@ -1339,7 +1339,7 @@ bool toxav_audio_send_frame(ToxAV *av, uint32_t friend_number, const int16_t *pc
13391339
0,
13401340
0,
13411341
nullptr) != 0) {
1342-
LOGGER_WARNING(av->m->log, "Failed to send audio packet");
1342+
LOGGER_DEBUG(av->m->log, "Failed to send audio packet");
13431343
rc = TOXAV_ERR_SEND_FRAME_RTP_FAILED;
13441344
}
13451345

toxav/video.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ uint8_t vc_iterate(VCSession *vc, Tox *tox, uint8_t skip_video_flag, uint64_t *a
723723

724724
if ((int32_t)header_v3_0->sequnum < (int32_t)vc->last_seen_fragment_seqnum) {
725725
// drop frame with too old sequence number
726-
LOGGER_API_ERROR(tox, "skipping incoming video frame (0) with sn=%d lastseen=%d old_frames_count=%d",
726+
LOGGER_API_DEBUG(tox, "skipping incoming video frame (0) with sn=%d lastseen=%d old_frames_count=%d",
727727
(int)header_v3_0->sequnum,
728728
(int)vc->last_seen_fragment_seqnum,
729729
(int)vc->count_old_video_frames_seen);
@@ -732,15 +732,15 @@ uint8_t vc_iterate(VCSession *vc, Tox *tox, uint8_t skip_video_flag, uint64_t *a
732732

733733
if ((int32_t)(header_v3_0->sequnum + 1) != (int32_t)vc->last_seen_fragment_seqnum) {
734734
// TODO: check why we often get exactly the previous video frame here?!?!
735-
LOGGER_API_ERROR(tox, "got previous seq number");
735+
LOGGER_API_DEBUG(tox, "got previous seq number");
736736
}
737737

738738
if (vc->count_old_video_frames_seen > 6) {
739739
// if we see more than 6 old video frames in a row, then either there was
740740
// a seqnum rollover or something else. just play those frames then
741741
vc->last_seen_fragment_seqnum = (int32_t)header_v3_0->sequnum;
742742
vc->count_old_video_frames_seen = 0;
743-
LOGGER_API_ERROR(tox, "count_old_video_frames_seen > 6");
743+
LOGGER_API_DEBUG(tox, "count_old_video_frames_seen > 6");
744744
}
745745

746746
free(p);
@@ -753,7 +753,7 @@ uint8_t vc_iterate(VCSession *vc, Tox *tox, uint8_t skip_video_flag, uint64_t *a
753753
int32_t missing_frames_count = (int32_t)header_v3_0->sequnum -
754754
(int32_t)(vc->last_seen_fragment_seqnum + 1);
755755

756-
LOGGER_API_ERROR(tox, "missing some video frames: missing count=%d", (int)missing_frames_count);
756+
LOGGER_API_DEBUG(tox, "missing some video frames: missing count=%d", (int)missing_frames_count);
757757

758758
#define NORMAL_MISSING_FRAME_COUNT_TOLERANCE 0
759759
#define WHEN_SKIPPING_MISSING_FRAME_COUNT_TOLERANCE 2

0 commit comments

Comments
 (0)