Experimental: Adding some fsanitize flags, a new example exe, a mutex on FFmpegReader::Close, and some additional clean-up code on AddImage (when a previous image exists)

This commit is contained in:
Jonathan Thomas
2022-07-27 15:33:40 -05:00
parent 01d16fe04a
commit 5ee38518da
4 changed files with 19 additions and 40 deletions

View File

@@ -753,6 +753,10 @@ void Frame::AddImage(
int new_width, int new_height, int bytes_per_pixel,
QImage::Format type, const unsigned char *pixels_)
{
if (has_image_data) {
// Delete the previous QImage
image.reset();
}
// Create new image object from pixel data
auto new_image = std::make_shared<QImage>(