X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fimage_content.cc;h=08b9fd6ae475a364dd367f48274ef28e23ebf5d0;hp=6d1738419bab10287a9df5149d2d31bec911a255;hb=422be0eece2bf6ee80db1d3c21553cd82efff789;hpb=29fe2d3a4c347e15b987f9e61e56d22a21d4678f diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc index 6d1738419..08b9fd6ae 100644 --- a/src/lib/image_content.cc +++ b/src/lib/image_content.cc @@ -1,19 +1,20 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2016 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -25,8 +26,8 @@ #include "job.h" #include "frame_rate_change.h" #include "exceptions.h" -#include "safe_stringstream.h" #include "image_filename_sorter.h" +#include #include #include #include @@ -36,6 +37,7 @@ using std::string; using std::cout; +using std::list; using boost::shared_ptr; ImageContent::ImageContent (shared_ptr film, boost::filesystem::path p) @@ -134,7 +136,7 @@ ImageContent::full_length () const string ImageContent::identifier () const { - SafeStringStream s; + locked_stringstream s; s << Content::identifier(); s << "_" << video->identifier (); s << "_" << video->length(); @@ -168,3 +170,10 @@ ImageContent::set_default_colour_conversion () video->set_colour_conversion (PresetColourConversion::from_id ("rec709").conversion); } } + +void +ImageContent::add_properties (list& p) const +{ + Content::add_properties (p); + video->add_properties (p); +}