diff --git a/src-tauri/src/windows_player_surface.rs b/src-tauri/src/windows_player_surface.rs index 16b698b..9bbe112 100644 --- a/src-tauri/src/windows_player_surface.rs +++ b/src-tauri/src/windows_player_surface.rs @@ -388,13 +388,20 @@ fn spawn_install_thread(app_handle: AppHandle, setup_tx: mpsc::Sender = None; + // TEMP DEBUG: dump a screenshot a few seconds into playback to check + // whether decode itself is black or only the on-screen display is. + let mut frames_since_load: u32 = 0; + let mut took_debug_screenshot = false; loop { // Drain command channel. while let Ok(cmd) = receiver.try_recv() { match cmd { SurfaceCommand::Load { url, start_at, .. } => { - log::info!("player surface: loading url={url} start_at={start_at:?}"); + log::info!( + "player surface: loading url={url} start_at={start_at:?} surface_size={}x{}", + last_size.0, last_size.1 + ); unsafe { set_window_blur_behind(parent_hwnd, false); ShowWindow(child_hwnd, SW_SHOW); @@ -411,6 +418,8 @@ fn spawn_install_thread(app_handle: AppHandle, setup_tx: mpsc::Sender(); *state.eof_next_fired.lock().unwrap() = false; @@ -490,6 +499,18 @@ fn spawn_install_thread(app_handle: AppHandle, setup_tx: mpsc::Sender