mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-04 10:26:02 -05:00
[raop] Fix warning about int type seqnum
This commit is contained in:
parent
7572560bf2
commit
aff8ac6a6b
@ -2810,8 +2810,8 @@ packets_resend(struct raop_session *rs, uint16_t seqnum, int len)
|
||||
|
||||
rtp_session = rs->master_session->rtp_session;
|
||||
|
||||
DPRINTF(E_DBG, L_RAOP, "Got retransmit request from '%s': seqnum %" PRIu16 " (len %d), last RTP session seqnum %" PRIu16 " (len %zu)\n",
|
||||
rs->devname, seqnum, len, rtp_session->seqnum - 1, rtp_session->pktbuf_len);
|
||||
DPRINTF(E_DBG, L_RAOP, "Got retransmit request from '%s': seqnum %" PRIu16 " (len %d), next RTP session seqnum %" PRIu16 " (len %zu)\n",
|
||||
rs->devname, seqnum, len, rtp_session->seqnum, rtp_session->pktbuf_len);
|
||||
|
||||
// Note that seqnum may wrap around, so we don't use it for counting
|
||||
for (i = 0, s = seqnum; i < len; i++, s++)
|
||||
@ -2824,8 +2824,8 @@ packets_resend(struct raop_session *rs, uint16_t seqnum, int len)
|
||||
}
|
||||
|
||||
if (pkt_missing)
|
||||
DPRINTF(E_WARN, L_RAOP, "Device '%s' retransmit request for seqnum %" PRIu16 " (len %d) is outside buffer range (last seqnum %" PRIu16 ", len %zu)\n",
|
||||
rs->devname, seqnum, len, rtp_session->seqnum - 1, rtp_session->pktbuf_len);
|
||||
DPRINTF(E_WARN, L_RAOP, "Device '%s' retransmit request for seqnum %" PRIu16 " (len %d) is outside buffer range (next seqnum %" PRIu16 ", len %zu)\n",
|
||||
rs->devname, seqnum, len, rtp_session->seqnum, rtp_session->pktbuf_len);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user