From: Georgi Chorbadzhiyski Date: Mon, 3 Mar 2014 19:21:30 +0000 (+0200) Subject: Prevent html producer from assuming all files are for it. X-Git-Tag: 2.0.7~41^2 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2f08c2ded430132a08ac2ee12792bc0f9864073f;p=casparcg Prevent html producer from assuming all files are for it. --- diff --git a/modules/html/producer/html_producer.cpp b/modules/html/producer/html_producer.cpp index 8ac3ae1d0..a73394120 100644 --- a/modules/html/producer/html_producer.cpp +++ b/modules/html/producer/html_producer.cpp @@ -343,6 +343,9 @@ safe_ptr create_producer( { const auto filename = env::template_folder() + L"\\" + params.at_original(0) + L".html"; + if (!boost::filesystem::exists(filename)) + return core::frame_producer::empty(); + const auto url = boost::filesystem::exists(filename) ? filename : params.at_original(0);