Add functionality to return raw thumbnail bytes, not encoded

* This is useful if you want to retrieve the thumbnail for in-memory
  processing instead of writing it to disk immediately.
This commit is contained in:
baldurk
2017-12-12 14:30:09 +00:00
parent f76ef57b43
commit 584b3c041c
6 changed files with 46 additions and 11 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ struct ThumbCommand : public Command
ReplayStatus st = file->OpenFile(filename.c_str(), "rdc");
if(st == ReplayStatus::Succeeded)
{
buf = file->GetThumbnail(type, maxsize);
buf = file->GetThumbnail(type, maxsize).bytes;
}
else
{