summaryrefslogtreecommitdiff
path: root/src/picture_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-20 02:42:23 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-20 02:42:23 +0100
commitd92919284b25526581f5a3f461f1e06106b91a09 (patch)
treed7f44a387d4c0ad52d8110bdd26d67620b3a6631 /src/picture_asset.cc
parent472b7ac9d168685d0268b4941f9520e12d67dc23 (diff)
Try to work on old versions of boost filesystem.
Diffstat (limited to 'src/picture_asset.cc')
-rw-r--r--src/picture_asset.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc
index 40afc8b2..eb06012f 100644
--- a/src/picture_asset.cc
+++ b/src/picture_asset.cc
@@ -121,7 +121,11 @@ PictureAsset::write_to_cpl (ostream& s) const
{
s << " <MainPicture>\n"
<< " <Id>urn:uuid:" << _uuid << "</Id>\n"
+#if BOOST_FILESYSTEM_VERSION == 3
<< " <AnnotationText>" << filesystem::path(_mxf_path).filename().string() << "</AnnotationText>\n"
+#else
+ << " <AnnotationText>" << filesystem::path(_mxf_path).filename() << "</AnnotationText>\n"
+#endif
<< " <EditRate>" << _fps << " 1</EditRate>\n"
<< " <IntrinsicDuration>" << _length << "</IntrinsicDuration>\n"
<< " <EntryPoint>0</EntryPoint>\n"