From e4e87c0403d16b1526caa84b8c529b884df26584 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 1 Jan 2023 15:13:25 +0800 Subject: [PATCH] SRS5: Live: Refine log for monotonically increase. PICK 6caca900b3c83f028703624dae5a371b22ff6c4f --- trunk/src/app/srs_app_source.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/trunk/src/app/srs_app_source.cpp b/trunk/src/app/srs_app_source.cpp index f20c31ca4..705d328fb 100755 --- a/trunk/src/app/srs_app_source.cpp +++ b/trunk/src/app/srs_app_source.cpp @@ -2244,11 +2244,12 @@ srs_error_t SrsLiveSource::on_audio(SrsCommonMessage* shared_audio) { srs_error_t err = srs_success; - // monotically increase detect. + // Detect where stream is monotonically increasing. if (!mix_correct && is_monotonically_increase) { if (last_packet_time > 0 && shared_audio->header.timestamp < last_packet_time) { is_monotonically_increase = false; - srs_warn("AUDIO: stream not monotonically increase, please open mix_correct."); + srs_warn("AUDIO: Timestamp %" PRId64 "=>%" PRId64 ", may need mix_correct.", + last_packet_time, shared_audio->header.timestamp); } } last_packet_time = shared_audio->header.timestamp; @@ -2365,12 +2366,13 @@ srs_error_t SrsLiveSource::on_audio_imp(SrsSharedPtrMessage* msg) srs_error_t SrsLiveSource::on_video(SrsCommonMessage* shared_video) { srs_error_t err = srs_success; - - // monotically increase detect. + + // Detect where stream is monotonically increasing. if (!mix_correct && is_monotonically_increase) { if (last_packet_time > 0 && shared_video->header.timestamp < last_packet_time) { is_monotonically_increase = false; - srs_warn("VIDEO: stream not monotonically increase, please open mix_correct."); + srs_warn("VIDEO: Timestamp %" PRId64 "=>%" PRId64 ", may need mix_correct.", + last_packet_time, shared_video->header.timestamp); } } last_packet_time = shared_video->header.timestamp;