From ee096e3b971888351318b458b21704931fb473d5 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 27 Mar 2022 18:36:24 +0200 Subject: [PATCH] fix drawtext when dummy is playling --- src/filter/v_drawtext.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/filter/v_drawtext.rs b/src/filter/v_drawtext.rs index 6682effd..115daa2b 100644 --- a/src/filter/v_drawtext.rs +++ b/src/filter/v_drawtext.rs @@ -1,6 +1,4 @@ -use std::{ - path::Path -}; +use std::path::Path; use regex::Regex; @@ -25,7 +23,10 @@ pub fn filter_node(node: &mut Media) -> String { None => source, }; - let escape = text.replace("'", "'\\\\\\''").replace("%", "\\\\\\%"); + let escape = text + .replace("'", "'\\\\\\''") + .replace("%", "\\\\\\%") + .replace(":", "\\:"); filter = format!("drawtext=text='{escape}':{}{font}", config.text.style) } else { filter = format!(