Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log re-import of track metadata from file tags with time stamps #4631

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Log re-import of track metadata from file tags with time stamps #4631

merged 1 commit into from
Jan 18, 2022

Conversation

uklotzde
Copy link
Contributor

@uklotzde uklotzde commented Jan 17, 2022

Replace the boolean result from updateTrackFromSource() with a dedicated result enum that allows to distinguish the different outcomes.

Related to #4628 for debugging purposes. Easier to review as a standalone PR.

Replace the boolean result from updateTrackFromSource() with a dedicated
result enum that allows to distinguish the different outcomes.
<< "Updated track metadata from file tags:"
<< pTrack->getFileInfo().lastModified()
<< pTrack->getMetadata();
DEBUG_ASSERT(!pTrack->isDirty());
Copy link
Contributor Author

@uklotzde uklotzde Jan 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added lots of debug assertions here to verify the assumptions.

NOTE: I didn't test if these debug assertions still work without the fixes from #4628.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should, since you just set pTrack->markClean(); above.

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you.

@daschuer daschuer merged commit dfb1bb3 into mixxxdj:main Jan 18, 2022
@uklotzde uklotzde deleted the updatetrackfromsourceresult branch January 18, 2022 17:28
@ronso0 ronso0 added this to the 2.4.0 milestone Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants