From 00390f8a7cc880e3056e4e4744dbfa1958edd020 Mon Sep 17 00:00:00 2001 From: Martin Piatka Date: Mon, 15 Aug 2022 12:11:35 +0200 Subject: [PATCH] unix_sock: Allow escaping of ':' in config --- src/video_display/unix_sock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_display/unix_sock.cpp b/src/video_display/unix_sock.cpp index 4bcdbd795..05659e6cd 100644 --- a/src/video_display/unix_sock.cpp +++ b/src/video_display/unix_sock.cpp @@ -135,7 +135,7 @@ static void *display_unix_sock_init(struct module *parent, } while(!fmt_sv.empty()){ - auto tok = tokenize(fmt_sv, ':'); + auto tok = tokenize(fmt_sv, ':', '"'); auto key = tokenize(tok, '='); if(key == "help"){ @@ -158,6 +158,7 @@ static void *display_unix_sock_init(struct module *parent, s->ipc_frame.reset(ipc_frame_new()); s->frame_writer.reset(ipc_frame_writer_new(socket_path.c_str())); if(!s->frame_writer){ + log_msg(LOG_LEVEL_ERROR, MOD_NAME "Unable to init ipc writer for path %s\n", socket_path.c_str()); return nullptr; }