From 6080802063a98441af21feb2f495e1e7a85d350c Mon Sep 17 00:00:00 2001 From: EinTim23 Date: Mon, 4 Nov 2024 23:11:50 +0100 Subject: [PATCH] close reader properly --- .gitignore | 3 ++- src/backends/windows.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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(); }