aboutsummaryrefslogtreecommitdiffstats
path: root/capchild
diff options
context:
space:
mode:
authorMasaru Tsuchiyama <m.tmatma@gmail.com>2020-08-09 12:12:24 +0900
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2020-10-30 00:25:22 +0000
commitc14ea41233fa92a1cb97ef29d1f9ded6587e45a5 (patch)
treeb5e1c5169190bddbff0af9c9bce120d0e14e442f /capchild
parent9d6ebdc8a5bf56bf3438489474674b8541a22876 (diff)
add support for compression of capture file
Diffstat (limited to 'capchild')
-rw-r--r--capchild/capture_sync.c4
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 */