Skip to content

Commit 4bb3833

Browse files
committed
avformat/whip: optimize log content
need to be changed AV_LOG_DEBUG before official commit Signed-off-by: Jack Lau <jacklau1222@qq.com>
1 parent 7c14581 commit 4bb3833

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libavformat/whip.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,10 +1969,13 @@ static int whip_write_packet(AVFormatContext *s, AVPacket *pkt)
19691969

19701970
const RtpHistoryItem * it = rtp_history_find(whip, seq);
19711971
if (it) {
1972-
send_rtx_packet(s, it->pkt, it->size);
1973-
av_log(whip, AV_LOG_INFO, "WHIP: NACK packet found: size: %d, seq=%d, blp=%d\n", it->size, seq, blp);
1972+
ret = send_rtx_packet(s, it->pkt, it->size);
1973+
av_log(whip, AV_LOG_INFO,
1974+
"WHIP: NACK, packet found: size: %d, seq=%d, rtx size=%d, lateset stored packet seq:%d\n",
1975+
it->size, seq, ret, whip->history[whip->hist_head-1].seq);
19741976
} else {
1975-
av_log(whip, AV_LOG_INFO, "WHIP: NACK packet, seq=%d, blp=%d, not found, the latest packet seq: %d, rtx seq: %d\n",
1977+
av_log(whip, AV_LOG_INFO,
1978+
"WHIP: NACK, packet not found, seq=%d, blp=%d, latest stored packet seq: %d, latest rtx seq: %d\n",
19761979
seq, blp, whip->history[whip->hist_head-1].seq, whip->rtx_seq);
19771980
}
19781981
}

0 commit comments

Comments
 (0)