1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-09-23 03:59:58 +00:00

Fix EXTINF and URI displaying bug

This commit is contained in:
Ian Jun 2019-05-20 07:01:01 +00:00
parent 7767f47f21
commit 788138903f
2 changed files with 2 additions and 2 deletions

View file

@ -277,7 +277,7 @@ impl fmt::Display for MediaPlaylist {
writeln!(f, "{}", t)?;
}
for segment in &self.segments {
writeln!(f, "{}", segment)?;
write!(f, "{}", segment)?;
}
if let Some(ref t) = self.end_list_tag {
writeln!(f, "{}", t)?;

View file

@ -108,7 +108,7 @@ impl fmt::Display for MediaSegment {
if let Some(ref t) = self.program_date_time_tag {
writeln!(f, "{}", t)?;
}
writeln!(f, "{}", self.inf_tag)?;
writeln!(f, "{},", self.inf_tag)?;
writeln!(f, "{}", self.uri)?;
Ok(())
}