summaryrefslogtreecommitdiff
path: root/src/subrip_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subrip_reader.cc')
-rw-r--r--src/subrip_reader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc
index e5f113d..94a48c0 100644
--- a/src/subrip_reader.cc
+++ b/src/subrip_reader.cc
@@ -24,6 +24,7 @@
#include "subrip_reader.h"
#include "exceptions.h"
#include "util.h"
+#include <locked_sstream.h>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/regex.hpp>
@@ -37,7 +38,6 @@ using std::vector;
using std::list;
using std::cout;
using std::hex;
-using std::stringstream;
using boost::lexical_cast;
using boost::to_upper;
using boost::optional;
@@ -47,7 +47,7 @@ using namespace sub;
/** @param s Subtitle string encoded in UTF-8 */
SubripReader::SubripReader (string const & s)
{
- stringstream str (s);
+ locked_stringstream str (s);
this->read (boost::bind (&get_line_stringstream, &str));
}