Skip to content

Commit

Permalink
normalize channels and methods (#2127)
Browse files Browse the repository at this point in the history
needed by #2068
  • Loading branch information
aler9 authored Jul 30, 2023
1 parent e3d4856 commit 72b1d23
Show file tree
Hide file tree
Showing 10 changed files with 221 additions and 224 deletions.
4 changes: 2 additions & 2 deletions internal/core/hls_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func newHLSManager(

m.Log(logger.Info, "listener opened on "+address)

m.pathManager.hlsManagerSet(m)
m.pathManager.setHLSManager(m)

if m.metrics != nil {
m.metrics.setHLSManager(m)
Expand Down Expand Up @@ -223,7 +223,7 @@ outer:

m.httpServer.close()

m.pathManager.hlsManagerSet(nil)
m.pathManager.setHLSManager(nil)

if m.metrics != nil {
m.metrics.setHLSManager(nil)
Expand Down
4 changes: 2 additions & 2 deletions internal/core/hls_muxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (m *hlsMuxer) clearQueuedRequests() {
}

func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{}) error {
res := m.pathManager.readerAdd(pathReaderAddReq{
res := m.pathManager.addReader(pathAddReaderReq{
author: m,
pathName: m.pathName,
skipAuth: true,
Expand All @@ -252,7 +252,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{})

m.path = res.path

defer m.path.readerRemove(pathReaderRemoveReq{author: m})
defer m.path.removeReader(pathRemoveReaderReq{author: m})

m.ringBuffer, _ = ringbuffer.New(uint64(m.readBufferCount))

Expand Down
Loading

0 comments on commit 72b1d23

Please sign in to comment.