Skip to content

Commit

Permalink
hack metadata reload logic to circumvent bug mixxxdj#11213
Browse files Browse the repository at this point in the history
  • Loading branch information
istepaniuk committed Jan 25, 2023
1 parent a53c1a6 commit 8f928b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/track/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void Track::replaceMetadataFromSource(

// Import track color from Serato tags if available
const auto newColor = m_record.getMetadata().getTrackInfo().getSeratoTags().getTrackColor();
const bool colorModified = compareAndSet(m_record.ptrColor(), newColor);
const bool colorModified = newColor.has_value() && compareAndSet(m_record.ptrColor(), newColor);
modified |= colorModified;
DEBUG_ASSERT(!colorModified || m_record.getColor() == newColor);

Expand Down

0 comments on commit 8f928b1

Please sign in to comment.