fix drawtext when dummy is playling
This commit is contained in:
parent
0fc5f6722f
commit
ee096e3b97
@ -1,6 +1,4 @@
|
|||||||
use std::{
|
use std::path::Path;
|
||||||
path::Path
|
|
||||||
};
|
|
||||||
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
|
|
||||||
@ -25,7 +23,10 @@ pub fn filter_node(node: &mut Media) -> String {
|
|||||||
None => source,
|
None => source,
|
||||||
};
|
};
|
||||||
|
|
||||||
let escape = text.replace("'", "'\\\\\\''").replace("%", "\\\\\\%");
|
let escape = text
|
||||||
|
.replace("'", "'\\\\\\''")
|
||||||
|
.replace("%", "\\\\\\%")
|
||||||
|
.replace(":", "\\:");
|
||||||
filter = format!("drawtext=text='{escape}':{}{font}", config.text.style)
|
filter = format!("drawtext=text='{escape}':{}{font}", config.text.style)
|
||||||
} else {
|
} else {
|
||||||
filter = format!(
|
filter = format!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user