aboutsummaryrefslogtreecommitdiff
path: root/stream/src/dash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/dash.rs')
-rw-r--r--stream/src/dash.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/src/dash.rs b/stream/src/dash.rs
index d2adf3f..6060501 100644
--- a/stream/src/dash.rs
+++ b/stream/src/dash.rs
@@ -209,6 +209,7 @@ impl Display for Timeline<'_> {
}
c += r;
match (r, first) {
+ (0, _) => (),
(1, true) => write!(f, r#"<S t="0" d="{last_d}" />"#)?,
(1, false) => write!(f, r#"<S d="{last_d}" />"#)?,
(_, true) => write!(f, r#"<S t="0" d="{last_d}" r="{r}" />"#)?,