mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-28 09:41:00 +00:00
Fixed broken test
This commit is contained in:
parent
7907f9b1f1
commit
e41105afdd
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
// The relevant issue:
|
||||
// https://github.com/sile/hls_m3u8/issues/55
|
||||
use std::str::FromStr;
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use hls_m3u8::tags::{ExtXMedia, VariantStream};
|
||||
use hls_m3u8::types::{MediaType, StreamData, UFloat};
|
||||
|
@ -13,7 +13,7 @@ fn parse() {
|
|||
let file = include_str!("assets/issue_00055.m3u8");
|
||||
|
||||
assert_eq!(
|
||||
MasterPlaylist::from_str(file).unwrap(),
|
||||
MasterPlaylist::try_from(file).unwrap(),
|
||||
MasterPlaylist::builder()
|
||||
.has_independent_segments(true)
|
||||
.media(vec![
|
||||
|
|
Loading…
Reference in a new issue