aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-05-30 04:46:25 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-05-30 04:46:25 +0000
commitec246cae542dcf2f4fb2d61a5f420bad610fbe1b (patch)
tree3b86ee7b73a8417a577b818bd50fe2e85f3ff694 /capture_sync.c
parent047cdd0f2a9f55ab8ef52d2af17090efb446acfb (diff)
fix #148: (win32 only) use command line parameter -B to set capture buffer size
svn path=/trunk/; revision=14484
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c
index ebc38b216d..9c177afe67 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -333,6 +333,7 @@ sync_pipe_start(capture_options *capture_opts) {
char sautostop_filesize[ARGV_NUMBER_LEN];
char sautostop_duration[ARGV_NUMBER_LEN];
#ifdef _WIN32
+ char buffer_size[ARGV_NUMBER_LEN];
char sync_pipe_fd[ARGV_NUMBER_LEN];
char signal_pipe_fd[ARGV_NUMBER_LEN];
char *fontstring;
@@ -459,6 +460,10 @@ sync_pipe_start(capture_options *capture_opts) {
capture_opts->signal_pipe_fd = signal_pipe[PIPE_WRITE];
+ argv = sync_pipe_add_arg(argv, &argc, "-B");
+ sprintf(buffer_size,"%d",capture_opts->buffer_size);
+ argv = sync_pipe_add_arg(argv, &argc, buffer_size);
+
/* Convert font name to a quote-encapsulated string and pass to child */
argv = sync_pipe_add_arg(argv, &argc, "-m");
fontstring = sync_pipe_quote_encapsulate(prefs.PREFS_GUI_FONT_NAME);