Skip to content

Commit

Permalink
playlist: throw error if server returns no variant playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
2bc4 committed Feb 19, 2024
1 parent 969978e commit c265389
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hls/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ impl MasterPlaylist {
)?
};

ensure!(
!master_playlist.variant_playlists.is_empty(),
"No variant playlists found"
);

Ok(master_playlist)
}

Expand Down

0 comments on commit c265389

Please sign in to comment.