From: Kostya Shishkov Date: Sat, 24 Jan 2026 17:19:50 +0000 (+0100) Subject: videoplayer: fix debug logging for loading settings file X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=25c08109e578383557e1d023b26d0227f08662d3;p=nihav-player.git videoplayer: fix debug logging for loading settings file --- diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index 78462f8..63b9675 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -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::(), dim[1].parse::()) { - 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 {