diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-10 16:38:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 09:13:51 +0100 |
| commit | b1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f (patch) | |
| tree | 9968238c6c0511f044e6fcdb4abcc08b5eb28f27 /src/lib/dcp_content.cc | |
| parent | 4a0ae92e28d7d1f0dd648d1b620efc324fdef161 (diff) | |
Remove all use of stringstream in an attempt to fix
the suspected thread-unsafe crash bugs on OS X.
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 431492c7a..b41e31c0c 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -239,14 +239,13 @@ DCPContent::full_length () const string DCPContent::identifier () const { - locked_stringstream s; - s << Content::identifier() << "_" << video->identifier() << "_"; + string s = Content::identifier() + "_" + video->identifier() + "_"; if (subtitle) { - s << subtitle->identifier () << " "; + s += subtitle->identifier () + " "; } - s << (_reference_video ? "1" : "0") - << (_reference_subtitle ? "1" : "0"); - return s.str (); + + s += string (_reference_video ? "1" : "0") + string (_reference_subtitle ? "1" : "0"); + return s; } void |
