mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
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:
parent
c63892bcdc
commit
c15033c77d
@ -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 (...) {
|
||||
|
Loading…
Reference in New Issue
Block a user