diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-14 01:36:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 4bbcf55dc0e644c20b1eaabee2da3219c4e7635f (patch) | |
| tree | c29c960e269666eb358d03d72aa8af55d6e79c59 | |
| parent | 6cac49dc50dae6b173135df101d532f20031ca70 (diff) | |
Add accessor for _text.
| -rw-r--r-- | src/lib/player_video.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h index 8134c8d4e..553d3c5bc 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -70,6 +70,9 @@ public: std::shared_ptr<PlayerVideo> shallow_copy () const; void set_text (PositionImage); + boost::optional<PositionImage> text () const { + return _text; + } void prepare (std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast, bool proxy_only); std::shared_ptr<Image> image (std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, bool fast) const; |
