]> git.nihav.org Git - nihav-player.git/commitdiff
videoplayer: fix debug logging for loading settings file
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 Jan 2026 17:19:50 +0000 (18:19 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 Jan 2026 17:19:50 +0000 (18:19 +0100)
videoplayer/src/main.rs

index 78462f87463f97102d7771cdf74f320ffaf19ef9..63b9675f4fc8c2515ded1e30d6aaa8f000a2960e 100644 (file)
@@ -1124,7 +1124,7 @@ fn main() {
         let mut rcfile = home_path.into_os_string();
         rcfile.push(std::path::MAIN_SEPARATOR_STR);
         rcfile.push(".naplayerrc");
-        debug_log!(self; {format!("opening settings file {rcfile}")});
+        debug_log!(player; {format!("opening settings file {}", rcfile.to_string_lossy())});
         if let Ok(file) = File::open(rcfile) {
             let br = BufReader::new(file);
             for (n, line) in br.lines().enumerate() {
@@ -1147,7 +1147,7 @@ fn main() {
                             continue;
                         }
                         if let (Ok(thr_w), Ok(thr_h)) = (dim[0].parse::<usize>(), dim[1].parse::<usize>()) {
-                            debug_log!(self; {format!(" set autoscale threshold to {thr_w}x{thr_h}")});
+                            debug_log!(player; {format!(" set autoscale threshold to {thr_w}x{thr_h}")});
                             player.thr_w = thr_w;
                             player.thr_h = thr_h;
                         } else {