diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-05 20:27:43 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-05 20:27:43 +0100 |
| commit | 9910c7fd9634a2ce1cd074192a212e8d7e06978e (patch) | |
| tree | c8aa527bc14c104c0c1beffaa2167fd598fc715c | |
| parent | 5fa35d0bc7e432a38f8d4a7e9214850d6edd8048 (diff) | |
| download | jellything-9910c7fd9634a2ce1cd074192a212e8d7e06978e.tar jellything-9910c7fd9634a2ce1cd074192a212e8d7e06978e.tar.bz2 jellything-9910c7fd9634a2ce1cd074192a212e8d7e06978e.tar.zst | |
fix bug on empty segment timeline
| -rw-r--r-- | stream/src/dash.rs | 1 |
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}" />"#)?, |