X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.cc;h=796e6575a2e62f2088affaafea41a7240adb866b;hb=22b9f3b2090d8bdfe52cda1e69d3acbe874f1ce5;hp=0a3e378eecb1fda2f05ef3b6894659c6849386fe;hpb=0f60e0f52c986f18764822de78b82b4163909f0c;p=dcpomatic.git diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 0a3e378ee..796e6575a 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -32,6 +32,7 @@ #include "exceptions.h" #include "frame_rate_change.h" #include "log.h" +#include "safe_stringstream.h" #include "i18n.h" @@ -45,7 +46,6 @@ int const VideoContentProperty::VIDEO_SCALE = 4; int const VideoContentProperty::COLOUR_CONVERSION = 5; using std::string; -using std::stringstream; using std::setprecision; using std::cout; using std::vector; @@ -217,7 +217,7 @@ VideoContent::information () const return ""; } - stringstream s; + SafeStringStream s; s << String::compose ( _("%1x%2 pixels (%3:1)"), @@ -309,7 +309,7 @@ VideoContent::set_scale (VideoContentScale s) string VideoContent::identifier () const { - stringstream s; + SafeStringStream s; s << Content::identifier() << "_" << crop().left << "_" << crop().right @@ -479,7 +479,7 @@ VideoContentScale::as_xml (xmlpp::Node* node) const string VideoContentScale::id () const { - stringstream s; + SafeStringStream s; if (_ratio) { s << _ratio->id () << "_";