From 5f4dfd1a3bf6eb81a083dc7606548156a51e2c03 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 18 Dec 2023 10:26:38 +0100 Subject: [PATCH] rtmp, srt: fix output of 'is reading from' log entry --- internal/servers/rtmp/conn.go | 2 +- internal/servers/srt/conn.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/servers/rtmp/conn.go b/internal/servers/rtmp/conn.go index a5eedfb4bda..7907ef01490 100644 --- a/internal/servers/rtmp/conn.go +++ b/internal/servers/rtmp/conn.go @@ -215,7 +215,7 @@ func (c *conn) runRead(conn *rtmp.Conn, u *url.URL) error { } c.Log(logger.Info, "is reading from path '%s', %s", - res.Path.Name, defs.MediasInfo(res.Stream.MediasForReader(writer))) + res.Path.Name(), defs.MediasInfo(res.Stream.MediasForReader(writer))) onUnreadHook := hooks.OnRead(hooks.OnReadParams{ Logger: c, diff --git a/internal/servers/srt/conn.go b/internal/servers/srt/conn.go index 63baf09d078..f9af9647a3d 100644 --- a/internal/servers/srt/conn.go +++ b/internal/servers/srt/conn.go @@ -332,7 +332,7 @@ func (c *conn) runRead(req srtNewConnReq, pathName string, user string, pass str } c.Log(logger.Info, "is reading from path '%s', %s", - res.Path.Name, defs.MediasInfo(res.Stream.MediasForReader(writer))) + res.Path.Name(), defs.MediasInfo(res.Stream.MediasForReader(writer))) onUnreadHook := hooks.OnRead(hooks.OnReadParams{ Logger: c,