diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-01 15:07:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-01 15:07:21 +0100 |
| commit | 19818898ac4606388a4848624fa0c92c5ac4e0da (patch) | |
| tree | fb7f73bd4d700ea8a578eb5490165b5325ddabac /src/sound_asset.cc | |
| parent | ca8ec410366fb8c9f554139a342b94b94d277127 (diff) | |
Windows build fixes.
Diffstat (limited to 'src/sound_asset.cc')
| -rw-r--r-- | src/sound_asset.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 9a738a08..ed815eda 100644 --- a/src/sound_asset.cc +++ b/src/sound_asset.cc @@ -120,7 +120,7 @@ SoundAsset::construct (sigc::slot<string, Channel> get_path) fill_writer_info (&writer_info); ASDCP::PCM::MXFWriter mxf_writer; - if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().c_str(), writer_info, audio_desc))) { + if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().string().c_str(), writer_info, audio_desc))) { throw FileError ("could not open audio MXF for writing", mxf_path().string()); } @@ -183,13 +183,13 @@ SoundAsset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const if (flags & MXF_INSPECT) { ASDCP::PCM::MXFReader reader_A; - if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().c_str()))) { + if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().string().c_str()))) { cout << "failed " << mxf_path() << "\n"; throw FileError ("could not open MXF file for reading", mxf_path().string()); } ASDCP::PCM::MXFReader reader_B; - if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().c_str()))) { + if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().string().c_str()))) { cout << "failed " << other->mxf_path() << "\n"; throw FileError ("could not open MXF file for reading", mxf_path().string()); } |
