From 5b1ec0834144c677222fb50d98f5d2fbe2347ded Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Mon, 13 Feb 2023 15:39:34 +0300 Subject: [PATCH] Move ts to mpegts package --- cmd/hls/hls.go | 4 ++-- pkg/{ts => mpegts}/ts.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename pkg/{ts => mpegts}/ts.go (99%) diff --git a/cmd/hls/hls.go b/cmd/hls/hls.go index 32618c64..18031e29 100644 --- a/cmd/hls/hls.go +++ b/cmd/hls/hls.go @@ -5,8 +5,8 @@ import ( "github.com/AlexxIT/go2rtc/cmd/api" "github.com/AlexxIT/go2rtc/cmd/streams" "github.com/AlexxIT/go2rtc/pkg/mp4" + "github.com/AlexxIT/go2rtc/pkg/mpegts" "github.com/AlexxIT/go2rtc/pkg/streamer" - "github.com/AlexxIT/go2rtc/pkg/ts" "github.com/rs/zerolog/log" "net/http" "strconv" @@ -75,7 +75,7 @@ func handlerStream(w http.ResponseWriter, r *http.Request) { Medias: medias, } } else { - cons = &ts.Consumer{ + cons = &mpegts.Consumer{ RemoteAddr: r.RemoteAddr, UserAgent: r.UserAgent(), } diff --git a/pkg/ts/ts.go b/pkg/mpegts/ts.go similarity index 99% rename from pkg/ts/ts.go rename to pkg/mpegts/ts.go index 7587c1b5..e9f0051b 100644 --- a/pkg/ts/ts.go +++ b/pkg/mpegts/ts.go @@ -1,4 +1,4 @@ -package ts +package mpegts import ( "bytes"