diff --git a/.gitignore b/.gitignore index 40579c1..bd8b8bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/* .DS_Store -src/rsrc.hpp \ No newline at end of file +src/rsrc.hpp +PlayerLink.exe \ No newline at end of file diff --git a/src/backends/windows.cpp b/src/backends/windows.cpp index 6d73010..3a5db22 100644 --- a/src/backends/windows.cpp +++ b/src/backends/windows.cpp @@ -93,6 +93,8 @@ std::shared_ptr backend::getMediaInformation() { std::vector buffer(size); reader.ReadBytes(buffer); + reader.Close(); + thumbnailData = std::string(buffer.begin(), buffer.end()); stream.Close(); }