Skip to content

Commit

Permalink
Only warn once
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Oct 8, 2024
1 parent ea54f03 commit 0d0b3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/viewer/re_renderer/src/video/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

Expand Down

0 comments on commit 0d0b3ae

Please sign in to comment.