1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-18 16:28:20 +00:00

Merge pull request #5 from unipro/master

Fix EXTINF and URI displaying bug
This commit is contained in:
Takeru Ohta 2019-06-15 18:51:09 +09:00 committed by GitHub
commit a304ac0a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(())
}