From adac3a797000b791ab1e761b78df1fb0301ac447 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 10 Mar 2021 14:55:54 +0100 Subject: [PATCH] NDI cap.: print explicitly that no sources were found --- src/video_capture/ndi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video_capture/ndi.cpp b/src/video_capture/ndi.cpp index aeca6d471..b7dd0cb05 100644 --- a/src/video_capture/ndi.cpp +++ b/src/video_capture/ndi.cpp @@ -159,6 +159,9 @@ static void show_help(const NDIlib_find_create_t *find_create_settings) { for (int i = 0; i < static_cast(nr_sources); ++i) { cout << "\t\t" << p_sources[i].p_ndi_name << " - " << p_sources[i].p_url_address << "\n"; } + if (nr_sources == 0) { + LOG(LOG_LEVEL_ERROR) << MOD_NAME << "No sources found!\n"; + } cout << "\n"; NDIlib_find_destroy(pNDI_find); }