close reader properly
This commit is contained in:
parent
06ce971112
commit
6080802063
|
@ -1,3 +1,4 @@
|
|||
build/*
|
||||
.DS_Store
|
||||
src/rsrc.hpp
|
||||
src/rsrc.hpp
|
||||
PlayerLink.exe
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue