From 1c1b7f5916bfa2cb577d3adf60ff264b5fcd3597 Mon Sep 17 00:00:00 2001 From: Serial Date: Mon, 19 Jul 2021 21:10:36 -0400 Subject: [PATCH] RiffTag return default on error --- src/components/tags/riff_tag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tags/riff_tag.rs b/src/components/tags/riff_tag.rs index 487b8d39..8be76cd8 100644 --- a/src/components/tags/riff_tag.rs +++ b/src/components/tags/riff_tag.rs @@ -30,7 +30,7 @@ impl RiffTag { { Ok(Self { inner: RiffInnerTag { - data: riff::read_from(reader)?, + data: riff::read_from(reader).unwrap_or_default(), }, _format: TagType::RiffInfo, })