Skip to content

Commit

Permalink
Fix inputs flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 16, 2021
1 parent fa5d5fa commit 83d69b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Ndi/InputFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Ndi
class InputEnumerator : public Device::DeviceEnumerator
{
std::set<QString> m_known;
Ndi::Finder find{Loader::instance()};
public:
InputEnumerator()
{
Expand All @@ -19,10 +20,8 @@ class InputEnumerator : public Device::DeviceEnumerator

void timerEvent(QTimerEvent* ev) override
{
auto& ndi = Loader::instance();
Ndi::Finder find{ndi};
uint32_t num_sources = 0;
find.wait_for_sources(100);
find.wait_for_sources(10);
auto sources = find.get_current_sources(&num_sources);

std::set<QString> new_nodes;
Expand Down
2 changes: 1 addition & 1 deletion addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"src": "https://github.com/ossia/score-addon-ndi/releases/download/v4.1.0/score-addon-ndi.zip",
"name": "NDI support",
"raw_name": "score-addon-ndi",
"version": "4.2",
"version": "4.3",
"kind": "addon",
"short": "Support for NDI input and output",
"long": "This addon provides NDI input and output devices",
Expand Down

0 comments on commit 83d69b9

Please sign in to comment.