Remove all use of stringstream in an attempt to fix
[dcpomatic.git] / src / lib / image_content.cc
index 08b9fd6ae475a364dd367f48274ef28e23ebf5d0..825f6da25aab1267bffe75f8fba442585c4a44e6 100644 (file)
@@ -27,7 +27,6 @@
 #include "frame_rate_change.h"
 #include "exceptions.h"
 #include "image_filename_sorter.h"
-#include <locked_sstream.h>
 #include <libcxml/cxml.h>
 #include <libxml++/libxml++.h>
 #include <boost/foreach.hpp>
@@ -136,11 +135,9 @@ ImageContent::full_length () const
 string
 ImageContent::identifier () const
 {
-       locked_stringstream s;
-       s << Content::identifier();
-       s << "_" << video->identifier ();
-       s << "_" << video->length();
-       return s.str ();
+       char buffer[256];
+       snprintf (buffer, sizeof(buffer), "%s_%s_%" PRId64, Content::identifier().c_str(), video->identifier().c_str(), video->length());
+       return buffer;
 }
 
 bool