From 0d0b3ae1a50dbdf25ac4a579996fe8e4e4a799c3 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 8 Oct 2024 13:59:03 +0200 Subject: [PATCH] Only warn once --- crates/viewer/re_renderer/src/video/decoder/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/viewer/re_renderer/src/video/decoder/mod.rs b/crates/viewer/re_renderer/src/video/decoder/mod.rs index 1bb4459c8f042..f6680fb770dab 100644 --- a/crates/viewer/re_renderer/src/video/decoder/mod.rs +++ b/crates/viewer/re_renderer/src/video/decoder/mod.rs @@ -118,9 +118,9 @@ impl VideoDecoder { if let Some(bit_depth) = data.config.stsd.contents.bit_depth() { #[allow(clippy::comparison_chain)] if bit_depth < 8 { - re_log::warn!("{debug_name} has unusual bit_depth of {bit_depth}"); + re_log::warn_once!("{debug_name} has unusual bit_depth of {bit_depth}"); } else if 8 < bit_depth { - re_log::warn!("{debug_name}: HDR videos not supported. See https://github.com/rerun-io/rerun/issues/7594 for more."); + re_log::warn_once!("{debug_name}: HDR videos not supported. See https://github.com/rerun-io/rerun/issues/7594 for more."); } }