Try to work on old versions of boost filesystem.
authorCarl Hetherington <cth@carlh.net>
Fri, 20 Jul 2012 01:42:23 +0000 (02:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 20 Jul 2012 01:42:23 +0000 (02:42 +0100)
src/asset.cc
src/picture_asset.cc
src/sound_asset.cc

index 0ad7b5b18290209dfd7f5be63e6cf450e9842d92..59d106b5fa8e5e8bebdf8116ad7e8769873b896d 100644 (file)
@@ -48,7 +48,11 @@ Asset::write_to_pkl (ostream& s) const
 {
        s << "    <Asset>\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         
          << "      <Hash>" << _digest << "</Hash>\n"
          << "      <Size>" << filesystem::file_size(_mxf_path) << "</Size>\n"
          << "      <Type>application/mxf</Type>\n"
@@ -62,7 +66,11 @@ Asset::write_to_assetmap (ostream& s) const
          << "      <Id>urn:uuid:" << _uuid << "</Id>\n"
          << "      <ChunkList>\n"
          << "        <Chunk>\n"
+#if BOOST_FILESYSTEM_VERSION == 3              
          << "          <Path>" << filesystem::path(_mxf_path).filename().string() << "</Path>\n"
+#else          
+         << "          <Path>" << filesystem::path(_mxf_path).filename() << "</Path>\n"
+#endif         
          << "          <VolumeIndex>1</VolumeIndex>\n"
          << "          <Offset>0</Offset>\n"
          << "          <Length>" << filesystem::file_size(_mxf_path) << "</Length>\n"
index 40afc8b2447fea1a89af80ece27e3781d79f6176..eb06012f2264644c752e1e80d0ec53a5c01f82c4 100644 (file)
@@ -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"
index 80313e07e438edda7e957a5e25515edfa0cbd824..3546bb5b1917f69bbdea517dc7bf4bea427a935a 100644 (file)
@@ -161,7 +161,11 @@ SoundAsset::write_to_cpl (ostream& s) const
 {
        s << "        <MainSound>\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"