fix drawtext when dummy is playling

This commit is contained in:
jb-alvarado 2022-03-27 18:36:24 +02:00
parent 0fc5f6722f
commit ee096e3b97

View File

@ -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!(