]> git.sesse.net Git - casparcg/commitdiff
Fixed bug in image_producer where a file with . in the name (except for extension...
authorHelge Norberg <helge.norberg@svt.se>
Tue, 1 Mar 2016 16:06:11 +0000 (17:06 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Tue, 1 Mar 2016 16:06:11 +0000 (17:06 +0100)
modules/image/producer/image_producer.cpp

index 92f805145d4d47f2d6146838a9d96447b23b1b55..70902fd1ddd3eb5bd78ba2d2c233bc65cc433f64 100644 (file)
@@ -265,7 +265,7 @@ spl::shared_ptr<core::frame_producer> create_producer(const core::frame_producer
 
        auto ext = std::find_if(g_extensions.begin(), g_extensions.end(), [&](const std::wstring& ex) -> bool
        {
-               auto file = caspar::find_case_insensitive(boost::filesystem::path(filename).replace_extension(ex).wstring());
+               auto file = caspar::find_case_insensitive(boost::filesystem::path(filename).wstring() + ex);
 
                return static_cast<bool>(file);
        });
@@ -283,7 +283,7 @@ spl::shared_ptr<core::frame_producer> create_thumbnail_producer(const core::fram
 
        auto ext = std::find_if(g_extensions.begin(), g_extensions.end(), [&](const std::wstring& ex) -> bool
        {
-               auto file = caspar::find_case_insensitive(boost::filesystem::path(filename).replace_extension(ex).wstring());
+               auto file = caspar::find_case_insensitive(boost::filesystem::path(filename).wstring() + ex);
 
                return static_cast<bool>(file);
        });