aboutsummaryrefslogtreecommitdiff
path: root/stream/src/webvtt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/webvtt.rs')
-rw-r--r--stream/src/webvtt.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/stream/src/webvtt.rs b/stream/src/webvtt.rs
index 6ee5212..faf0cd3 100644
--- a/stream/src/webvtt.rs
+++ b/stream/src/webvtt.rs
@@ -41,8 +41,12 @@ pub async fn webvtt_stream(
})
.await??;
- let webvtt = webvtt_from_ass_blocks(node.public.title, codec_private, ass_blocks)
- .context("transcoding subtitles")?;
+ let webvtt = webvtt_from_ass_blocks(
+ node.public.title.clone().unwrap_or_default(),
+ codec_private,
+ ass_blocks,
+ )
+ .context("transcoding subtitles")?;
tokio::task::spawn(async move {
let _ = b.write_all(webvtt.as_bytes()).await;