]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: rtp - show the correct TCP port number in debug msg for streaming close...
authorJaroslav Kysela <perex@perex.cz>
Mon, 7 Aug 2017 12:28:10 +0000 (14:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 18 Sep 2017 13:07:21 +0000 (15:07 +0200)
src/satip/rtp.c

index 5679f7ade1c6008600807c61443984c1bd3364f2..d6f6fb07fc562f8beaa271b2a5bb90b3161556df 100644 (file)
@@ -442,7 +442,9 @@ satip_rtp_thread(void *aux)
   pthread_mutex_unlock(&sq->sq_mutex);
 
   tvhdebug(LS_SATIPS, "RTP streaming to %s:%d closed (%s request)%s",
-           peername, rtp->port, alive ? "remote" : "streaming",
+           peername,
+           tcp ? ntohs(IP_PORT(rtp->peer)) : rtp->port,
+           alive ? "remote" : "streaming",
            fatal ? " (fatal)" : "");
 
   return NULL;