From dfafdd9ef5e8fefa4ac2431c3243cf61c994a6f4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 12 Oct 2024 17:43:27 +0200 Subject: Constant bitrate option as default for streaming --- src/Process.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/Process.cpp') diff --git a/src/Process.cpp b/src/Process.cpp index 822e82e..f9c896c 100644 --- a/src/Process.cpp +++ b/src/Process.cpp @@ -10,11 +10,22 @@ #include namespace gsr { + static void debug_print_args(const char **args) { + fprintf(stderr, "gsr-overlay info: running command:"); + while(*args) { + fprintf(stderr, " %s", *args); + ++args; + } + fprintf(stderr, "\n"); + } + bool exec_program_daemonized(const char **args) { /* 1 argument */ if(args[0] == nullptr) return false; + debug_print_args(args); + pid_t pid = vfork(); if(pid == -1) { perror("Failed to vfork"); @@ -45,6 +56,8 @@ namespace gsr { if(args[0] == nullptr) return -1; + debug_print_args(args); + pid_t pid = vfork(); if(pid == -1) { perror("Failed to vfork"); -- cgit v1.2.3