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

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/* build/*
.DS_Store .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); std::vector<uint8_t> buffer(size);
reader.ReadBytes(buffer); reader.ReadBytes(buffer);
reader.Close();
thumbnailData = std::string(buffer.begin(), buffer.end()); thumbnailData = std::string(buffer.begin(), buffer.end());
stream.Close(); stream.Close();
} }