boost::filesystem.
[libdcp.git] / src / sound_asset.cc
index 88f9a0fb5ed7c4ae84eb8677fe977b9408943a6a..8f666ee60a1cb46ba8142726f59fa22d283b169c 100644 (file)
@@ -91,7 +91,7 @@ SoundAsset::create (boost::function<boost::filesystem::path (Channel)> get_path)
 
        assert (_channels > 0);
        ASDCP::PCM::WAVParser pcm_parser_channel[_channels];
-       if (pcm_parser_channel[0].OpenRead (get_path(LEFT).c_str(), asdcp_edit_rate)) {
+       if (pcm_parser_channel[0].OpenRead (get_path(LEFT).string().c_str(), asdcp_edit_rate)) {
                boost::throw_exception (FileError ("could not open WAV file for reading", get_path(LEFT)));
        }