From f079fd365edbed9f7eca1a9fb77a9c43ca9ad7a6 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Tue, 9 May 2023 16:29:19 +0200 Subject: [PATCH] fix race condition in tests (#1781) --- internal/core/hls_source_test.go | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/internal/core/hls_source_test.go b/internal/core/hls_source_test.go index 32003ebd..dbf21648 100644 --- a/internal/core/hls_source_test.go +++ b/internal/core/hls_source_test.go @@ -87,25 +87,6 @@ func (ts *testHLSServer) onSegment1(ctx *gin.Context) { mux.WriteTables() - enc, _ := h264.AnnexBMarshal([][]byte{ - {1}, // non-IDR - }) - - mux.WriteData(&astits.MuxerData{ - PID: 256, - PES: &astits.PESData{ - Header: &astits.PESHeader{ - OptionalHeader: &astits.PESOptionalHeader{ - MarkerBits: 2, - PTSDTSIndicator: astits.PTSDTSIndicatorOnlyPTS, - PTS: &astits.ClockReference{Base: int64(1 * 90000)}, - }, - StreamID: 224, - }, - Data: enc, - }, - }) - pkts := mpeg4audio.ADTSPackets{ { Type: 2, @@ -114,7 +95,7 @@ func (ts *testHLSServer) onSegment1(ctx *gin.Context) { AU: []byte{0x01, 0x02, 0x03, 0x04}, }, } - enc, _ = pkts.Marshal() + enc, _ := pkts.Marshal() mux.WriteData(&astits.MuxerData{ PID: 257,