std::wstring filename = env::media_folder() + L"\\" + params[0] + L".ct";\r
if(!boost::filesystem::exists(filename))\r
return core::frame_producer::empty();\r
- \r
- boost::algorithm::replace_all(filename, L"\\", L"/");\r
- boost::algorithm::replace_all(filename, L"//", L"/");\r
- boost::algorithm::replace_all(filename, L"///", L"/");\r
- \r
+ \r
+ boost::filesystem2::wpath path(filename);\r
+ path = boost::filesystem2::complete(path);\r
+ filename = path.file_string();\r
+\r
auto flash_producer = flash::create_producer(frame_factory, boost::assign::list_of<std::wstring>()); \r
auto producer = make_safe<cg_producer>(flash_producer);\r
producer->add(0, filename, 1);\r