File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
src/modules/ffmpeg/producer Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -220,16 +220,9 @@ boost::tribool has_valid_extension(const boost::filesystem::path& filename)
220
220
return boost::tribool (boost::indeterminate);
221
221
}
222
222
223
- bool has_invalid_protocol (const boost::filesystem::path & filename)
223
+ bool has_invalid_protocol (const std::wstring & filename)
224
224
{
225
- static const auto invalid_protocols = {L" ndi:" };
226
-
227
- auto protocol = boost::to_lower_copy (filename.root_name ().wstring ());
228
-
229
- if (std::find (invalid_protocols.begin (), invalid_protocols.end (), protocol) != invalid_protocols.end ()) {
230
- return true ;
231
- }
232
- return false ;
225
+ return boost::algorithm::istarts_with (filename, L" ndi://" );
233
226
}
234
227
235
228
bool is_readable (const boost::filesystem::path& filename)
You can’t perform that action at this time.
0 commit comments