Ignore and report failures to decode frames during playback (#1593).
[dcpomatic.git] / src / lib / image_proxy.h
index 9619fab75d345fe53b3ad278d4466756dc5dbcd0..1d57b4e08e27b746b38fdd2c4e9584ac4e66d4a8 100644 (file)
@@ -64,6 +64,13 @@ public:
                Result (boost::shared_ptr<Image> image_, int log2_scaling_)
                        : image (image_)
                        , log2_scaling (log2_scaling_)
+                       , error (false)
+               {}
+
+               Result (boost::shared_ptr<Image> image_, int log2_scaling_, bool error_)
+                       : image (image_)
+                       , log2_scaling (log2_scaling_)
+                       , error (error_)
                {}
 
                /** Image (which will be aligned) */
@@ -73,6 +80,8 @@ public:
                 *  will be 1.
                 */
                int log2_scaling;
+               /** true if there was an error during image decoding, otherwise false */
+               bool error;
        };
 
        /** @param log Log to write to, or 0.