Skip to content

Commit

Permalink
chore: Remove InvalidMediaSequence error handling.
Browse files Browse the repository at this point in the history
Invalid media sequence number error handling has been deemed unnecessary and thus removed from validation.rs and playlist/mod.rs. Other existing validation errors remain unaffected.
  • Loading branch information
includeamin committed Nov 4, 2024
1 parent 1db0107 commit c242716
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions src/m3u8/playlist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ impl Playlist {
Tag::ExtXTargetDuration(duration) if *duration == 0 => {
errors.push(ValidationError::InvalidTargetDuration(*duration));
}
Tag::ExtXMediaSequence(sequence) if *sequence == 0 => {
errors.push(ValidationError::InvalidMediaSequence(*sequence));
}
Tag::ExtXKey { method, .. }
if !matches!(method.as_str(), "NONE" | "AES-128" | "SAMPLE-AES") =>
{
Expand Down
9 changes: 1 addition & 8 deletions src/m3u8/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ pub enum ValidationError {
///
/// * `u32` - The invalid target duration value that was encountered.
InvalidTargetDuration(u64),

/// Error indicating that the media sequence number specified is invalid.
///
/// # Arguments
///
/// * `u64` - The invalid media sequence number that was encountered.
InvalidMediaSequence(u64),


/// Error indicating that an invalid key method was specified.
///
/// # Arguments
Expand Down

0 comments on commit c242716

Please sign in to comment.