capture preview: Allow escaping of ':' in config

This commit is contained in:
Martin Piatka
2022-08-15 12:10:32 +02:00
parent c63412767b
commit 3257e5a036

View File

@@ -95,6 +95,7 @@ static void worker(struct state_preview_filter *s, std::string path){
if(!writer){
writer.reset(ipc_frame_writer_new(path.c_str()));
if(!writer){
log_msg(LOG_LEVEL_VERBOSE, MOD_NAME "Unable to init ipc writer for path %s\n", path.c_str());
sleep(1);
continue;
}
@@ -143,7 +144,7 @@ static int init(struct module *parent, const char *cfg, void **state){
std::string_view cfg_sv = cfg ? cfg : "";
while(!cfg_sv.empty()){
auto tok = tokenize(cfg_sv, ':');
auto tok = tokenize(cfg_sv, ':', '"');
auto key = tokenize(tok, '=');
auto val = tokenize(tok, '=');