mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
[airplay] Fix warning about int type seqnum
This commit is contained in:
parent
aff8ac6a6b
commit
5e93080aa2
@ -1978,8 +1978,8 @@ packets_resend(struct airplay_session *rs, uint16_t seqnum, int len)
|
|||||||
|
|
||||||
rtp_session = rs->master_session->rtp_session;
|
rtp_session = rs->master_session->rtp_session;
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_AIRPLAY, "Got retransmit request from '%s': seqnum %" PRIu16 " (len %d), last RTP session seqnum %" PRIu16 " (len %zu)\n",
|
DPRINTF(E_DBG, L_AIRPLAY, "Got retransmit request from '%s': seqnum %" PRIu16 " (len %d), next RTP session seqnum %" PRIu16 " (len %zu)\n",
|
||||||
rs->devname, seqnum, len, rtp_session->seqnum - 1, rtp_session->pktbuf_len);
|
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
|
// Note that seqnum may wrap around, so we don't use it for counting
|
||||||
for (i = 0, s = seqnum; i < len; i++, s++)
|
for (i = 0, s = seqnum; i < len; i++, s++)
|
||||||
@ -1992,8 +1992,8 @@ packets_resend(struct airplay_session *rs, uint16_t seqnum, int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pkt_missing)
|
if (pkt_missing)
|
||||||
DPRINTF(E_WARN, L_AIRPLAY, "Device '%s' retransmit request for seqnum %" PRIu16 " (len %d) is outside buffer range (last seqnum %" PRIu16 ", len %zu)\n",
|
DPRINTF(E_WARN, L_AIRPLAY, "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 - 1, rtp_session->pktbuf_len);
|
rs->devname, seqnum, len, rtp_session->seqnum, rtp_session->pktbuf_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user