summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-15 20:09:24 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-23 19:51:28 +0200
commitd04355507baefd5fa42629341ed422f7402772f4 (patch)
tree078ee4094c7a8e4165329aa672279f7f6988c872 /src/wx/film_viewer.h
parent6b1ebeac38cf60142c542bbad30cea5597d7e1e7 (diff)
Move some stuff into FilmViewer::dcp().
Diffstat (limited to 'src/wx/film_viewer.h')
-rw-r--r--src/wx/film_viewer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h
index 392cf85a3..3ade364fe 100644
--- a/src/wx/film_viewer.h
+++ b/src/wx/film_viewer.h
@@ -43,6 +43,7 @@ LIBDCP_ENABLE_WARNINGS
class Butler;
class ClosedCaptionsDialog;
+class DCPContent;
class FFmpegPlayer;
class Image;
class Player;
@@ -76,6 +77,11 @@ public:
return _film;
}
+ /** @return The DCP that we are playing back, if that's the only content in
+ * our Film.
+ */
+ std::shared_ptr<DCPContent> dcp() const;
+
void seek (dcpomatic::DCPTime t, bool accurate);
void seek (std::shared_ptr<Content> content, dcpomatic::ContentTime p, bool accurate);
void seek_by (dcpomatic::DCPTime by, bool accurate);