From 96433e753b9ee33f7239a8d977e3bbdf5578fc6c Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:06:09 +0200 Subject: [PATCH] fix tests --- internal/hls/muxer_test.go | 7 ------- internal/hls/muxer_variant_mpegts_playlist.go | 1 - 2 files changed, 8 deletions(-) diff --git a/internal/hls/muxer_test.go b/internal/hls/muxer_test.go index 3bd11449a44..d8c3a11cd05 100644 --- a/internal/hls/muxer_test.go +++ b/internal/hls/muxer_test.go @@ -141,7 +141,6 @@ func TestMuxerVideoAudio(t *testing.T) { `#EXT-X-ALLOW-CACHE:NO\n` + `#EXT-X-TARGETDURATION:4\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:4,\n` + `(seg0\.ts)\n` + @@ -155,7 +154,6 @@ func TestMuxerVideoAudio(t *testing.T) { `#EXT-X-TARGETDURATION:4\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + `#EXT-X-MAP:URI="init.mp4"\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:4.00000,\n` + `(seg0\.mp4)\n` + @@ -255,7 +253,6 @@ func TestMuxerVideoOnly(t *testing.T) { `#EXT-X-ALLOW-CACHE:NO\n` + `#EXT-X-TARGETDURATION:4\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:4,\n` + `(seg0\.ts)\n` + @@ -269,7 +266,6 @@ func TestMuxerVideoOnly(t *testing.T) { `#EXT-X-TARGETDURATION:4\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + `#EXT-X-MAP:URI="init.mp4"\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:4.00000,\n` + `(seg0\.mp4)\n` + @@ -372,7 +368,6 @@ func TestMuxerAudioOnly(t *testing.T) { `#EXT-X-ALLOW-CACHE:NO\n` + `#EXT-X-TARGETDURATION:1\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:1,\n` + `(seg0\.ts)\n$`) @@ -383,7 +378,6 @@ func TestMuxerAudioOnly(t *testing.T) { `#EXT-X-TARGETDURATION:2\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + `#EXT-X-MAP:URI="init.mp4"\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:2.32200,\n` + `(seg0\.mp4)\n` + @@ -482,7 +476,6 @@ func TestMuxerDoubleRead(t *testing.T) { `#EXT-X-ALLOW-CACHE:NO\n` + `#EXT-X-TARGETDURATION:2\n` + `#EXT-X-MEDIA-SEQUENCE:0\n` + - `\n` + `#EXT-X-PROGRAM-DATE-TIME:(.*?)\n` + `#EXTINF:2,\n` + `(seg0\.ts)\n$`) diff --git a/internal/hls/muxer_variant_mpegts_playlist.go b/internal/hls/muxer_variant_mpegts_playlist.go index a7762b347c0..201511936b9 100644 --- a/internal/hls/muxer_variant_mpegts_playlist.go +++ b/internal/hls/muxer_variant_mpegts_playlist.go @@ -75,7 +75,6 @@ func (p *muxerVariantMPEGTSPlaylist) playlist() io.Reader { cnt += "#EXT-X-TARGETDURATION:" + strconv.FormatUint(uint64(targetDuration), 10) + "\n" cnt += "#EXT-X-MEDIA-SEQUENCE:" + strconv.FormatInt(int64(p.segmentDeleteCount), 10) + "\n" - cnt += "\n" for _, s := range p.segments { cnt += "#EXT-X-PROGRAM-DATE-TIME:" + s.startTime.Format("2006-01-02T15:04:05.999Z07:00") + "\n" +