From e94b1bc474a60ed294fdeeff2fee2876252a43ca Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Tue, 14 Jun 2022 16:02:11 -0300 Subject: [PATCH] segmenter: Fix segment sent on sendSegment function (#166) Really simply mistake, mah bad. --- internal/testers/segmenter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testers/segmenter.go b/internal/testers/segmenter.go index e61bfbef..ff89f377 100644 --- a/internal/testers/segmenter.go +++ b/internal/testers/segmenter.go @@ -141,7 +141,7 @@ func segmentingLoop(ctx context.Context, fileName string, inFileReal av.DemuxClo sendSegment := func(seg *model.HlsSegment) bool { select { - case out <- &model.HlsSegment{Err: err}: + case out <- seg: return true case <-ctx.Done(): return false