From 2cf3da72a017eebf741dfb9a5ec158df94a4e7b7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Jul 2014 09:36:58 +0100 Subject: Basics of DCP import. --- src/lib/video_content.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/video_content.cc') 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 d) _video_frame_rate = vfr; _video_length = vl; } + + shared_ptr 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); -- cgit v1.2.3