From 1cf4b15273dbff17d489ed85a7be290aa639bc64 Mon Sep 17 00:00:00 2001 From: casey langen Date: Thu, 8 Oct 2020 17:40:21 -0700 Subject: [PATCH] Minor bug fix to TrackMetadataBatchQuery --- src/core/library/query/TrackMetadataBatchQuery.cpp | 1 + src/plugins/httpdatastream/HttpDataStream.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/library/query/TrackMetadataBatchQuery.cpp b/src/core/library/query/TrackMetadataBatchQuery.cpp index 3f43aa52f..f675952f6 100644 --- a/src/core/library/query/TrackMetadataBatchQuery.cpp +++ b/src/core/library/query/TrackMetadataBatchQuery.cpp @@ -63,6 +63,7 @@ bool TrackMetadataBatchQuery::OnRun(Connection& db) { if (i < this->trackIds.size() - 1) { idList += ","; } + ++i; } std::string query = tracks::kAllMetadataQueryByIdBatch; diff --git a/src/plugins/httpdatastream/HttpDataStream.cpp b/src/plugins/httpdatastream/HttpDataStream.cpp index a732c6198..fc43544d3 100755 --- a/src/plugins/httpdatastream/HttpDataStream.cpp +++ b/src/plugins/httpdatastream/HttpDataStream.cpp @@ -327,7 +327,7 @@ bool HttpDataStream::Open(const char *rawUri, OpenFlags flags) { this->state = Loading; downloadThread.reset(new std::thread(&HttpDataStream::ThreadProc, this)); - /* wait until headers have finished */ + /* wait until we have a few hundred k of data */ startedContition.wait(lock); return true;