From fc9f45dd18d47b3a45fabf4a24e48954b3e72cc4 Mon Sep 17 00:00:00 2001 From: Vadim Getmanshchuk Date: Wed, 26 Feb 2020 16:21:06 -0800 Subject: [PATCH] Fix tag duplication The fix is addressing duplication for #EXT-X-KEY and #EXT-X-MAP tags in a media manifest produced --- src/playlist.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/playlist.rs b/src/playlist.rs index e87ad50..a8799da 100644 --- a/src/playlist.rs +++ b/src/playlist.rs @@ -479,6 +479,8 @@ impl MediaPlaylist { next_segment.uri = u; media_playlist.segments.push(next_segment); next_segment = MediaSegment::empty(); + encryption_key = None; + map = None; } _ => (), }