]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: fix IP_PORT log messages (missing ntohs)
authorJaroslav Kysela <perex@perex.cz>
Sat, 6 May 2017 16:57:15 +0000 (18:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 12 May 2017 19:43:41 +0000 (21:43 +0200)
src/satip/rtp.c

index fede572b8b7d764e9e65b1c158cc09174d92083d..a6e292930e74f53ec5ad4ba7dbe2061128cfcfdc 100644 (file)
@@ -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);