diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2021-03-18 23:41:28 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2021-03-18 23:41:47 +0100 |
commit | 44ffbb622ecb1cb288a91e7253e690da257f9401 (patch) | |
tree | 58f78df42d6f242e58220e04d5402d0e8cc8c30b /src | |
parent | 57ebe8879f8797c1b28b98b38c316e99d1506676 (diff) |
Log import of Serato beats and cues for debugging
Diffstat (limited to 'src')
-rw-r--r-- | src/track/track.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/track/track.cpp b/src/track/track.cpp index 59633fdbd9..b7df80ee89 100644 --- a/src/track/track.cpp +++ b/src/track/track.cpp @@ -217,8 +217,16 @@ void Track::importMetadata( // all existing metadata must be preserved. Importing Serato metadata // is done last to override any previously imported metadata. if (!importedSeratoTags.isEmpty()) { - tryImportBeats(importedSeratoTags.importBeats(), importedSeratoTags.isBpmLocked()); - importCueInfos(importedSeratoTags.importCueInfos()); + auto pBeatsImporter = importedSeratoTags.importBeats(); + if (pBeatsImporter) { + kLogger.debug() << "Importing Serato beats"; + tryImportBeats(std::move(pBeatsImporter), importedSeratoTags.isBpmLocked()); + } + auto pCuesImporter = importedSeratoTags.importCueInfos(); + if (pCuesImporter) { + kLogger.debug() << "Importing Serato cues"; + importCueInfos(std::move(pCuesImporter)); + } setColor(importedSeratoTags.getTrackColor()); } } |