summaryrefslogtreecommitdiff
path: root/src/lib/video_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-09 09:36:58 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-09 09:36:58 +0100
commit2cf3da72a017eebf741dfb9a5ec158df94a4e7b7 (patch)
tree2fcc142d132fb1de2228cfca201a4e0825415dc8 /src/lib/video_content.cc
parent02de0e70ffa175861fb4392e9df4e5a7c1579375 (diff)
Basics of DCP import.
Diffstat (limited to 'src/lib/video_content.cc')
-rw-r--r--src/lib/video_content.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc
index 5fd71076b..a2a4e6c6b 100644
--- a/src/lib/video_content.cc
+++ b/src/lib/video_content.cc
@@ -31,9 +31,12 @@
#include "film.h"
#include "exceptions.h"
#include "frame_rate_change.h"
+#include "log.h"
#include "i18n.h"
+#define LOG_GENERAL(...) film->log()->log (String::compose (__VA_ARGS__), Log::TYPE_GENERAL);
+
int const VideoContentProperty::VIDEO_SIZE = 0;
int const VideoContentProperty::VIDEO_FRAME_RATE = 1;
int const VideoContentProperty::VIDEO_FRAME_TYPE = 2;
@@ -196,6 +199,10 @@ VideoContent::take_from_video_examiner (shared_ptr<VideoExaminer> d)
_video_frame_rate = vfr;
_video_length = vl;
}
+
+ shared_ptr<const Film> film = _film.lock ();
+ assert (film);
+ LOG_GENERAL ("Video length obtained from header as %1 frames", _video_length.frames (_video_frame_rate));
signal_changed (VideoContentProperty::VIDEO_SIZE);
signal_changed (VideoContentProperty::VIDEO_FRAME_RATE);