]> git.nihav.org Git - nihav-player.git/commitdiff
videoplayer: a bit more of window title workaround workaround
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 8 Aug 2023 16:24:19 +0000 (18:24 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 8 Aug 2023 16:24:19 +0000 (18:24 +0200)
videoplayer/src/main.rs

index d3aef1babb219e53b4240452c1b009e62b7f6e4a..c681e9c459b97593f58749829a1bb05050ddcb2b 100644 (file)
@@ -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()