boost::filesystem.
authorCarl Hetherington <cth@carlh.net>
Fri, 4 Oct 2013 10:20:48 +0000 (11:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 4 Oct 2013 10:20:48 +0000 (11:20 +0100)
src/sound_asset.cc

index ec82752c290ea6f68efb912942f4d4e654169b94..88f9a0fb5ed7c4ae84eb8677fe977b9408943a6a 100644 (file)
@@ -123,7 +123,7 @@ SoundAsset::create (boost::function<boost::filesystem::path (Channel)> get_path)
 
                boost::filesystem::path const path = get_path (channels[i]);
                
-               if (ASDCP_FAILURE (pcm_parser_channel[i].OpenRead (path.c_str(), asdcp_edit_rate))) {
+               if (ASDCP_FAILURE (pcm_parser_channel[i].OpenRead (path.string().c_str(), asdcp_edit_rate))) {
                        boost::throw_exception (FileError ("could not open WAV file for reading", path));
                }