diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-14 22:16:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-14 22:16:27 +0200 |
| commit | 4ab86ef0295bcd6bb9297996a06006f371d22bae (patch) | |
| tree | fefc1706a67a10f6aa1a7c5d576e5cb8826ce950 /src/lib/image_proxy.h | |
| parent | 3b31d2d8a129ae6d8d267427bd6b5bc444b40b2a (diff) | |
Ignore and report failures to decode frames during playback (#1593).
Diffstat (limited to 'src/lib/image_proxy.h')
| -rw-r--r-- | src/lib/image_proxy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index 9619fab75..1d57b4e08 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -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. |
