diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-17 00:56:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-17 00:56:28 +0000 |
| commit | 39960754026821775e6753a83f6934b8befa0dc2 (patch) | |
| tree | 8d772c04725d86d9525f511f08062f72a21bef61 /src/lib/audio_content.cc | |
| parent | f84289fe40cbd5fbf4f139f1c70870787bac7d3a (diff) | |
More uses of LocaleGuard; hence speculative fix for servers crashing on lexical_cast.
Diffstat (limited to 'src/lib/audio_content.cc')
| -rw-r--r-- | src/lib/audio_content.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc index 100264d44..e0eaacb91 100644 --- a/src/lib/audio_content.cc +++ b/src/lib/audio_content.cc @@ -54,6 +54,8 @@ AudioContent::AudioContent (shared_ptr<const Film> f, boost::filesystem::path p) AudioContent::AudioContent (shared_ptr<const Film> f, shared_ptr<const cxml::Node> node) : Content (f, node) { + LocaleGuard lg; + _audio_gain = node->number_child<float> ("AudioGain"); _audio_delay = node->number_child<int> ("AudioDelay"); } @@ -61,6 +63,8 @@ AudioContent::AudioContent (shared_ptr<const Film> f, shared_ptr<const cxml::Nod void AudioContent::as_xml (xmlpp::Node* node) const { + LocaleGuard lg; + boost::mutex::scoped_lock lm (_mutex); node->add_child("AudioGain")->add_child_text (lexical_cast<string> (_audio_gain)); node->add_child("AudioDelay")->add_child_text (lexical_cast<string> (_audio_delay)); |
