summaryrefslogtreecommitdiff
path: root/src/lib/player_video.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-14 22:16:27 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-14 22:16:27 +0200
commit4ab86ef0295bcd6bb9297996a06006f371d22bae (patch)
treefefc1706a67a10f6aa1a7c5d576e5cb8826ce950 /src/lib/player_video.h
parent3b31d2d8a129ae6d8d267427bd6b5bc444b40b2a (diff)
Ignore and report failures to decode frames during playback (#1593).
Diffstat (limited to 'src/lib/player_video.h')
-rw-r--r--src/lib/player_video.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h
index 3cd559409..0a6a9da67 100644
--- a/src/lib/player_video.h
+++ b/src/lib/player_video.h
@@ -56,7 +56,8 @@ public:
boost::optional<ColourConversion>,
VideoRange video_range,
boost::weak_ptr<Content>,
- boost::optional<Frame>
+ boost::optional<Frame>,
+ bool error
);
PlayerVideo (boost::shared_ptr<cxml::Node>, boost::shared_ptr<Socket>);
@@ -107,6 +108,10 @@ public:
return _content;
}
+ bool error () const {
+ return _error;
+ }
+
private:
void make_image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const;
@@ -137,6 +142,8 @@ private:
mutable dcp::Size _image_out_size;
/** _fade that was used to make _image */
mutable boost::optional<double> _image_fade;
+ /** true if there was an error when decoding our image */
+ mutable bool _error;
};
#endif