From 8bef34f672815c3c9b4236d06fdee8dfd0bffbc2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Nov 2013 01:52:23 +0000 Subject: Various joining fixes. --- src/lib/video_content.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/video_content.cc') diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index ca4ed8a9f..0a19ffd69 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -101,10 +101,11 @@ VideoContent::VideoContent (shared_ptr f, shared_ptr f, vector > c) : Content (f, c) + , _video_length (0) { shared_ptr ref = dynamic_pointer_cast (c[0]); assert (ref); - + for (size_t i = 0; i < c.size(); ++i) { shared_ptr vc = dynamic_pointer_cast (c[i]); @@ -131,6 +132,8 @@ VideoContent::VideoContent (shared_ptr f, vector if (vc->colour_conversion() != ref->colour_conversion()) { throw JoinError (_("Content to be joined must have the same colour conversion.")); } + + _video_length += vc->video_length (); } _video_size = ref->video_size (); -- cgit v1.2.3