From 0bb44ec6bea01ce83e8430d47708875c350351e0 Mon Sep 17 00:00:00 2001 From: cohaereo Date: Fri, 21 Jun 2024 20:05:20 +0200 Subject: [PATCH] Fix accidental tag traversal filter --- src/gui/audio.rs | 1 + src/gui/tag.rs | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/audio.rs b/src/gui/audio.rs index 71c2bd8..89ac76d 100644 --- a/src/gui/audio.rs +++ b/src/gui/audio.rs @@ -113,6 +113,7 @@ impl AudioPlayer { samples.to_vec(), ); self.sink.stop(); + self.sink.clear(); self.sink.append(sb); self.sink.play(); diff --git a/src/gui/tag.rs b/src/gui/tag.rs index 818d5a4..d958f12 100644 --- a/src/gui/tag.rs +++ b/src/gui/tag.rs @@ -1062,11 +1062,14 @@ fn traverse_tag( writeln!(out, "{fancy_tag} @ 0x{offset:X}",).ok(); if let Some(entry) = &entry { - if matches!(entry.reference, 0x808099F1 | 0x80808BE0) { + if entry.reference == 0x808099F1 { return TraversedTag { tag, entry: Some(entry.clone()), - reason: None, + reason: Some(format!( + "Reference 0x{:08X} is blocked from being scanned", + entry.reference + )), subtags: vec![], }; }