Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeugma440 committed Nov 4, 2023
1 parent cb1d6e3 commit caec6e6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ATL/AudioData/IO/VorbisTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ protected override bool read(Stream source, ReadTagParams readTagParams)
{
int nbFields = 0;
int index = 0;
bool result = true;

// ResetData(); <-- no; that calls resets image data when VorbisTag is managed by FLAC. ResetData has to be called manually by using Clear
// Resets stuff anyway
Expand Down Expand Up @@ -637,12 +636,11 @@ public TagData GetDeletionTagData()

foreach (MetaFieldInfo fieldInfo in GetAdditionalFields())
{
//if (!fieldInfo.NativeFieldCode.Equals(VENDOR_METADATA_ID))
//{
MetaFieldInfo emptyFieldInfo = new MetaFieldInfo(fieldInfo);
emptyFieldInfo.MarkedForDeletion = true;
tag.AdditionalFields.Add(emptyFieldInfo);
//}
MetaFieldInfo emptyFieldInfo = new MetaFieldInfo(fieldInfo)
{
MarkedForDeletion = true
};
tag.AdditionalFields.Add(emptyFieldInfo);
}

return tag;
Expand Down

0 comments on commit caec6e6

Please sign in to comment.