minor fix

This commit is contained in:
Naoto Kondo
2022-03-17 20:40:36 +09:00
parent b3700fe89d
commit 74aa4f569e

View File

@@ -27,7 +27,7 @@ def main():
sources = ndi.find_get_current_sources(ndi_find) sources = ndi.find_get_current_sources(ndi_find)
if len(sources) > 0: if len(sources) > 0:
new_source = random.choice(sources) new_source = random.choice(sources)
print('routing to %s \n' % new_source.ndi_name) print('routing to %s' % new_source.ndi_name)
ndi.routing_change(ndi_routing, new_source) ndi.routing_change(ndi_routing, new_source)
else: else:
ndi.routing_clear(ndi_routing) ndi.routing_clear(ndi_routing)