close reader properly

This commit is contained in:
EinTim23 2024-11-04 23:11:50 +01:00
parent 06ce971112
commit 6080802063
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/*
.DS_Store
src/rsrc.hpp
src/rsrc.hpp
PlayerLink.exe

View File

@ -93,6 +93,8 @@ std::shared_ptr<MediaInfo> backend::getMediaInformation() {
std::vector<uint8_t> buffer(size);
reader.ReadBytes(buffer);
reader.Close();
thumbnailData = std::string(buffer.begin(), buffer.end());
stream.Close();
}