Fixed a bug in LocalMetadataProxy that was assuming the input Track

would always be the same reference as the resulting track in
TrackMetadataQuery.
This commit is contained in:
casey langen 2020-10-05 22:19:24 -07:00
parent c63892bcdc
commit c15033c77d

View File

@ -331,7 +331,7 @@ ITrack* LocalMetadataProxy::QueryTrackById(int64_t trackId) {
this->library->Enqueue(search, ILibrary::QuerySynchronous);
if (search->GetStatus() == IQuery::Finished) {
return target->GetSdkValue();
return search->Result()->GetSdkValue();
}
}
catch (...) {
@ -352,7 +352,7 @@ ITrack* LocalMetadataProxy::QueryTrackByExternalId(const char* externalId) {
this->library->Enqueue(search, ILibrary::QuerySynchronous);
if (search->GetStatus() == IQuery::Finished) {
return target->GetSdkValue();
return search->Result()->GetSdkValue();
}
}
catch (...) {