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:
|
// The relevant issue:
|
||||||
// https://github.com/sile/hls_m3u8/issues/55
|
// 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::tags::{ExtXMedia, VariantStream};
|
||||||
use hls_m3u8::types::{MediaType, StreamData, UFloat};
|
use hls_m3u8::types::{MediaType, StreamData, UFloat};
|
||||||
|
@ -13,7 +13,7 @@ fn parse() {
|
||||||
let file = include_str!("assets/issue_00055.m3u8");
|
let file = include_str!("assets/issue_00055.m3u8");
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
MasterPlaylist::from_str(file).unwrap(),
|
MasterPlaylist::try_from(file).unwrap(),
|
||||||
MasterPlaylist::builder()
|
MasterPlaylist::builder()
|
||||||
.has_independent_segments(true)
|
.has_independent_segments(true)
|
||||||
.media(vec![
|
.media(vec![
|
||||||
|
|
Loading…
Reference in a new issue