mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-13 06:06:46 +09:00
Constant bitrate option as default for streaming
This commit is contained in:
@@ -10,11 +10,22 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user