diff options
author | Masaru Tsuchiyama <m.tmatma@gmail.com> | 2020-08-09 12:12:24 +0900 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2020-10-30 00:25:22 +0000 |
commit | c14ea41233fa92a1cb97ef29d1f9ded6587e45a5 (patch) | |
tree | b5e1c5169190bddbff0af9c9bce120d0e14e442f /capchild | |
parent | 9d6ebdc8a5bf56bf3438489474674b8541a22876 (diff) |
add support for compression of capture file
Diffstat (limited to 'capchild')
-rw-r--r-- | capchild/capture_sync.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c index d26566eaec..f31914886a 100644 --- a/capchild/capture_sync.c +++ b/capchild/capture_sync.c @@ -440,6 +440,10 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, inf for (i = 0; i < argc; i++) { g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "argv[%d]: %s", i, argv[i]); } + if (capture_opts->compress_type) { + argv = sync_pipe_add_arg(argv, &argc, "--compress-type"); + argv = sync_pipe_add_arg(argv, &argc, capture_opts->compress_type); + } #ifdef _WIN32 /* init SECURITY_ATTRIBUTES */ |