From a2e94fe3dbd50196e811b36eb9dc2494f80b2d7f Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Sun, 6 Aug 2023 17:56:11 +0200 Subject: [PATCH] normalize error message (#2160) --- internal/core/hls_muxer.go | 2 +- internal/core/srt_conn.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/hls_muxer.go b/internal/core/hls_muxer.go index fe59dab1..7792943c 100644 --- a/internal/core/hls_muxer.go +++ b/internal/core/hls_muxer.go @@ -272,7 +272,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{}) if medias == nil { return fmt.Errorf( - "the stream doesn't contain any supported codec, which are currently H265, H264, Opus, MPEG4-Audio") + "the stream doesn't contain any supported codec, which are currently H265, H264, Opus, MPEG-4 Audio") } var muxerDirectory string diff --git a/internal/core/srt_conn.go b/internal/core/srt_conn.go index 819a3ce6..d2cb9ad5 100644 --- a/internal/core/srt_conn.go +++ b/internal/core/srt_conn.go @@ -742,7 +742,7 @@ func (c *srtConn) runRead(req srtNewConnReq, pathName string, user string, pass if len(tracks) == 0 { return true, fmt.Errorf( - "the stream doesn't contain any supported codec, which are currently H265, H264, Opus, MPEG4-Audio") + "the stream doesn't contain any supported codec, which are currently H265, H264, Opus, MPEG-4 Audio") } c.Log(logger.Info, "is reading from path '%s', %s",