]> git.sesse.net Git - casparcg/blobdiff - modules/flash/util/swf.cpp
2.0.2: Improved INFO.
[casparcg] / modules / flash / util / swf.cpp
index b8cf015f6577858f2665ae339ab94118d19fab59..b12becf531502817c07b2dea17eef3b82a3eed65 100644 (file)
@@ -2,11 +2,15 @@
 \r
 #include <common/exception/exceptions.h>\r
 \r
-#include <fstream>\r
-#include <streambuf>\r
+#include <boost/property_tree/ptree.hpp>\r
+#include <boost/property_tree/xml_parser.hpp>\r
+#include <boost/algorithm/string/replace.hpp>\r
 \r
 #include <zlib.h>\r
 \r
+#include <fstream>\r
+#include <streambuf>\r
+\r
 namespace caspar { namespace flash {\r
        \r
 std::vector<char> decompress_one_file(const std::vector<char>& in_data, uLong buf_size = 5000000)\r
@@ -29,7 +33,7 @@ std::vector<char> decompress_one_file(const std::vector<char>& in_data, uLong bu
        return out_data;\r
 }\r
 \r
-std::wstring read_template_meta_info(const std::wstring& filename)\r
+std::string read_template_meta_info(const std::wstring& filename)\r
 {\r
        auto file = std::fstream(filename, std::ios::in | std::ios::binary);\r
 \r
@@ -67,8 +71,8 @@ std::wstring read_template_meta_info(const std::wstring& filename)
        \r
        if(beg_it == data.end() || end_it == data.end())\r
                BOOST_THROW_EXCEPTION(file_read_error());\r
-       \r
-       return widen(std::string(beg_it, end_it+end_str.size()));\r
+                       \r
+       return std::string(beg_it, end_it+end_str.size());\r
 }\r
 \r
 }}
\ No newline at end of file