updating dependencies and code refactoring for the new changes

This commit is contained in:
kdeng00
2020-01-28 21:03:56 -05:00
parent 979dd66842
commit a970ba207e
7 changed files with 7 additions and 7 deletions
+1 -1
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ namespace callback {
StreamCallback(); StreamCallback();
StreamCallback(const std::string&); StreamCallback(const std::string&);
oatpp::data::v_io_size read(void*, oatpp::data::v_io_size); oatpp::v_io_size read(void*, oatpp::v_io_size);
private: private:
std::string m_songPath; std::string m_songPath;
+1 -1
View File
@@ -221,7 +221,7 @@ namespace controller {
songDb = songRepo.retrieveRecord(songDb, type::SongFilter::id); songDb = songRepo.retrieveRecord(songDb, type::SongFilter::id);
oatpp::data::v_io_size dSize = 1024; auto dSize = 1024;
auto db = std::make_shared<oatpp::web::protocol::http::outgoing::ChunkedBody>( auto db = std::make_shared<oatpp::web::protocol::http::outgoing::ChunkedBody>(
std::make_shared<callback::StreamCallback>(songDb.songPath), std::make_shared<callback::StreamCallback>(songDb.songPath),
+1 -1
View File
@@ -18,7 +18,7 @@ namespace callback {
} }
oatpp::data::v_io_size StreamCallback::read(void *buff, oatpp::data::v_io_size count) { oatpp::v_io_size StreamCallback::read(void *buff, oatpp::v_io_size count) {
if (m_counter >= m_fileSize) { if (m_counter >= m_fileSize) {
std::cout << "done streaming song\n"; std::cout << "done streaming song\n";
return 0; return 0;