Skip to content

Commit 7d8c2c7

Browse files
committed
ndi_common.h: properly mark string literal as UTF-8
+ missing space before (R) mark + make NDI_PRINT_COPYRIGHT macro call look like function
1 parent 14017ee commit 7d8c2c7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ndi_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ static void close_ndi_library(LIB_HANDLE hNDILib) {
162162
}
163163

164164
#define NDI_PRINT_COPYRIGHT \
165-
color_out(COLOR_OUT_BOLD | COLOR_OUT_BLUE, "This application uses NDI® available from http://ndi.tv/\n" \
166-
"NDI®is a registered trademark of NewTek, Inc.\n\n");
165+
color_out(COLOR_OUT_BOLD | COLOR_OUT_BLUE, u8"This application uses NDI® available from http://ndi.tv/\n" \
166+
u8"NDI® is a registered trademark of NewTek, Inc.\n\n"); int not_defined_function
167167

168168
#endif // defined NDI_COMMON_H_1A76D048_695C_4247_A24A_583C29010FC4
169169

src/video_capture/ndi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void show_help(struct vidcap_state_ndi *s) {
172172

173173
static int vidcap_ndi_init(struct vidcap_params *params, void **state)
174174
{
175-
NDI_PRINT_COPYRIGHT
175+
NDI_PRINT_COPYRIGHT(void);
176176
using namespace std::string_literals;
177177
using std::stoi;
178178
auto s = new vidcap_state_ndi();

src/video_display/ndi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void *display_ndi_init(struct module *parent, const char *fmt, unsigned i
127127
{
128128
UNUSED(flags);
129129
UNUSED(parent);
130-
NDI_PRINT_COPYRIGHT
130+
NDI_PRINT_COPYRIGHT();
131131

132132
char *fmt_copy = NULL;
133133
struct display_ndi *s = calloc(1, sizeof(struct display_ndi));

0 commit comments

Comments
 (0)