diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-17 14:30:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-17 14:30:21 +0100 |
| commit | 34f2b95c1638a2cfedf21de5a203d6c0b77abf11 (patch) | |
| tree | bd78b7dbca7d975a89ef9628f6d4b2fd783a39f1 /src/picture_asset_writer_common.cc | |
| parent | 81ed0ebb725a7b5fec00ae209ba8b0d70ebc4ee1 (diff) | |
Use an optional<> where there should be one.
Diffstat (limited to 'src/picture_asset_writer_common.cc')
| -rw-r--r-- | src/picture_asset_writer_common.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/picture_asset_writer_common.cc b/src/picture_asset_writer_common.cc index 7239cf87..a0e66bea 100644 --- a/src/picture_asset_writer_common.cc +++ b/src/picture_asset_writer_common.cc @@ -67,7 +67,7 @@ void dcp::start (PictureAssetWriter* writer, shared_ptr<P> state, Standard stand asset->fill_writer_info (&state->writer_info, asset->id(), standard); Kumu::Result_t r = state->mxf_writer.OpenWrite ( - asset->file().string().c_str(), + asset->file()->string().c_str(), state->writer_info, state->picture_descriptor, 16384, @@ -75,7 +75,7 @@ void dcp::start (PictureAssetWriter* writer, shared_ptr<P> state, Standard stand ); if (ASDCP_FAILURE (r)) { - boost::throw_exception (MXFFileError ("could not open MXF file for writing", asset->file().string(), r)); + boost::throw_exception (MXFFileError ("could not open MXF file for writing", asset->file()->string(), r)); } writer->_started = true; |
