X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fvideo_content_scale_test.cc;h=b1a1e258d1482c0587251daed57d09c632a24db3;hb=b1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f;hp=e297d0cd231fcf38dee6e8af7c6726ddeb1c1893;hpb=4a0ae92e28d7d1f0dd648d1b620efc324fdef161;p=dcpomatic.git diff --git a/test/video_content_scale_test.cc b/test/video_content_scale_test.cc index e297d0cd2..b1a1e258d 100644 --- a/test/video_content_scale_test.cc +++ b/test/video_content_scale_test.cc @@ -34,8 +34,7 @@ void test (dcp::Size content_size, dcp::Size display_size, dcp::Size film_size, Crop crop, Ratio const * ratio, bool scale, dcp::Size correct) { shared_ptr film; - locked_stringstream s; - s << "" + string s = "" "" "FFmpeg" "/home/c.hetherington/DCP/prophet_clip.mkv" @@ -44,26 +43,26 @@ test (dcp::Size content_size, dcp::Size display_size, dcp::Size film_size, Crop "0" "0" "2879" - "" << content_size.width << "" - "" << content_size.height << "" + "" + raw_convert(content_size.width) + "" + "" + raw_convert(content_size.height) + "" "23.97602462768555" "23.97602462768555" "0" "1" "12" - "" << crop.left << "" - "" << crop.right << "" - "" << crop.top << "" - "" << crop.bottom << "" + "" + raw_convert(crop.left) + "" + "" + raw_convert(crop.right) + "" + "" + raw_convert(crop.top) + "" + "" + raw_convert(crop.bottom) + "" ""; if (ratio) { - s << "" << ratio->id() << ""; + s += "" + ratio->id() + ""; } else { - s << "" << scale << ""; + s += "" + string(scale ? "1" : "0") + ""; } - s << "" + s += "" "" "2.4" "1" @@ -87,7 +86,7 @@ test (dcp::Size content_size, dcp::Size display_size, dcp::Size film_size, Crop ""; shared_ptr doc (new cxml::Document ()); - doc->read_string(s.str ()); + doc->read_string (s); list notes; shared_ptr vc (new FFmpegContent (film, doc, 10, notes));