From: Kostya Shishkov Date: Tue, 8 Aug 2023 16:24:19 +0000 (+0200) Subject: videoplayer: a bit more of window title workaround workaround X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c66ce56577a58f3e5fc4885fbeab9135151c8f01;p=nihav-player.git videoplayer: a bit more of window title workaround workaround --- 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()