From c56a56abe8e93490f560c4bee912e93e20c507d7 Mon Sep 17 00:00:00 2001 From: Luro02 <24826124+Luro02@users.noreply.github.com> Date: Wed, 25 Mar 2020 12:49:53 +0100 Subject: [PATCH] internalize ExtXIFramesOnly --- src/tags/media_playlist/i_frames_only.rs | 13 +------------ src/tags/media_playlist/mod.rs | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/tags/media_playlist/i_frames_only.rs b/src/tags/media_playlist/i_frames_only.rs index d7334cb..22971da 100644 --- a/src/tags/media_playlist/i_frames_only.rs +++ b/src/tags/media_playlist/i_frames_only.rs @@ -5,19 +5,8 @@ use crate::types::ProtocolVersion; use crate::utils::tag; use crate::{Error, RequiredVersion}; -/// # [4.4.3.6. EXT-X-I-FRAMES-ONLY] -/// -/// The [`ExtXIFramesOnly`] tag indicates that each [`Media Segment`] in the -/// Playlist describes a single I-frame. I-frames are encoded video -/// frames, whose decoding does not depend on any other frame. I-frame -/// Playlists can be used for trick play, such as fast forward, rapid -/// reverse, and scrubbing. -/// -/// [`Media Segment`]: crate::MediaSegment -/// [4.4.3.6. EXT-X-I-FRAMES-ONLY]: -/// https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-04#section-4.4.3.6 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub struct ExtXIFramesOnly; +pub(crate) struct ExtXIFramesOnly; impl ExtXIFramesOnly { pub(crate) const PREFIX: &'static str = "#EXT-X-I-FRAMES-ONLY"; diff --git a/src/tags/media_playlist/mod.rs b/src/tags/media_playlist/mod.rs index 00dc65d..ca57eae 100644 --- a/src/tags/media_playlist/mod.rs +++ b/src/tags/media_playlist/mod.rs @@ -7,7 +7,7 @@ mod target_duration; pub use discontinuity_sequence::*; pub(crate) use end_list::*; -pub use i_frames_only::*; +pub(crate) use i_frames_only::*; pub use media_sequence::*; pub use playlist_type::*; pub use target_duration::*;