]> git.sesse.net Git - nageru/blobdiff - futatabi/jpeg_frame_view.cpp
Fix a dangling reference (found by GCC 14).
[nageru] / futatabi / jpeg_frame_view.cpp
index 7da8f14cea7d60d07f21361f1f6f2a521ad7fba0..6ab19482fb93772956036c19175b6ecef36262e3 100644 (file)
@@ -412,6 +412,7 @@ void JPEGFrameView::setFrame(shared_ptr<Frame> frame)
        lock_guard<mutex> lock(cache_mu);
        PendingDecode decode;
        decode.frame = std::move(frame);
+       decode.fade_alpha = 0.0f;
        pending_decodes.push_back(decode);
        any_pending_decodes.notify_all();
 }