summaryrefslogtreecommitdiff
path: root/src/lib/video_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-12 23:25:19 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-18 11:50:29 +0100
commit78664f8073256de51355c9162f61a4ae4fa560d7 (patch)
treecd49f4377b123ea6bc0a3a4ca5973a76fae38b72 /src/lib/video_content.h
parent6f344b876689a1234a5eb75041882f06f5d9fe5c (diff)
Take some stuff out of VideoContent into ContentPart.
Diffstat (limited to 'src/lib/video_content.h')
-rw-r--r--src/lib/video_content.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index 768f1897d..075f7b701 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -25,6 +25,7 @@
#include "dcpomatic_time.h"
#include "user_property.h"
#include "types.h"
+#include "content_part.h"
#include <boost/thread/mutex.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
@@ -47,7 +48,7 @@ public:
static int const VIDEO_FADE_OUT;
};
-class VideoContent : public boost::enable_shared_from_this<VideoContent>
+class VideoContent : public ContentPart, public boost::enable_shared_from_this<VideoContent>
{
public:
VideoContent (Content* parent, boost::shared_ptr<const Film>);
@@ -184,9 +185,6 @@ public:
private:
- Content* _parent;
- boost::weak_ptr<const Film> _film;
- mutable boost::mutex _mutex;
Frame _video_length;
/** Video frame rate, or not set if this content should use the DCP's frame rate */
boost::optional<double> _video_frame_rate;