Skip to content

Commit

Permalink
changed NDI producer command syntax to conform with main CasparCG branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskie committed Jan 8, 2019
1 parent 2d6da92 commit 8a3f9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ndi/producer/ndi_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,12 @@ safe_ptr<core::frame_producer> create_producer(
const safe_ptr<core::frame_factory>& frame_factory,
const core::parameters& params)
{
if(params.empty() || !boost::iequals(params[0], "ndi"))
if(params.empty() || !boost::iequals(params[0], "[ndi]"))
return core::frame_producer::empty();
auto source_address = params.get(L"ADDRESS", L"");
auto source_name = params.get(L"NAME", L"");
if (source_name.empty() && source_address.empty())
source_name = params.get(L"NDI", L"");
source_name = params.get(L"[NDI]", L"");
if (source_name.empty() && source_address.empty())
return core::frame_producer::empty();
auto buffer_depth = params.get(L"BUFFER", 2);
Expand Down

0 comments on commit 8a3f9c3

Please sign in to comment.