From a8b079045d7ee868000b8fd3ba95961e91ed4888 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 6 May 2017 18:57:15 +0200 Subject: [PATCH] satip server: fix IP_PORT log messages (missing ntohs) --- src/satip/rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/satip/rtp.c b/src/satip/rtp.c index fede572b8..a6e292930 100644 --- a/src/satip/rtp.c +++ b/src/satip/rtp.c @@ -363,7 +363,7 @@ satip_rtp_thread(void *aux) tcp_get_str_from_ip(&rtp->peer, peername, sizeof(peername)); tvhdebug(LS_SATIPS, "RTP streaming to %s:%d open", peername, - tcp ? IP_PORT(rtp->peer) : rtp->port); + tcp ? ntohs(IP_PORT(rtp->peer)) : rtp->port); pthread_mutex_lock(&sq->sq_mutex); while (rtp->sq && !fatal) { @@ -901,7 +901,7 @@ satip_rtcp_thread(void *aux) err = errno; tcp_get_str_from_ip(&rtp->peer2, addrbuf, sizeof(addrbuf)); tvhwarn(LS_SATIPS, "RTCP send to error %s:%d : %s", - addrbuf, IP_PORT(rtp->peer2), strerror(err)); + addrbuf, ntohs(IP_PORT(rtp->peer2)), strerror(err)); } } pthread_mutex_unlock(&satip_rtp_lock); -- 2.47.3