From c66ce56577a58f3e5fc4885fbeab9135151c8f01 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 8 Aug 2023 18:24:19 +0200 Subject: [PATCH] videoplayer: a bit more of window title workaround workaround --- videoplayer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index d3aef1b..c681e9c 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -720,7 +720,7 @@ impl Player { let wname = if let Some(fname) = fname { // workaround for libSDL2 workaround for non-UTF8 windowing systems // see https://github.com/libsdl-org/SDL/pull/4290 for detais - let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-"); + let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-").replace('\u{2014}', "-"); "NihAV player - ".to_owned() + &nname } else { "NihAV player".to_owned() -- 2.39.5