summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-26 11:29:53 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-26 11:29:53 +0200
commitfe3f6a4818fc198dba4ecde07151d21665e1f987 (patch)
treed64fb9d965e00e0da8d697ce0031e0c1fda80016
parent55cbb2f5965361a7c47899340a12d3b38599f811 (diff)
Add more comments
-rw-r--r--glcapture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glcapture.c b/glcapture.c
index 5344215..e90f5ca 100644
--- a/glcapture.c
+++ b/glcapture.c
@@ -311,6 +311,10 @@ write_data_unsafe(struct fifo *fifo, const struct frame_info *info, const void *
}
fifo->size = pipe_sz;
+
+ // Set some reasonable buffer size for fwrites
+ // This is still experimental and if you get smoother output by setting this to
+ // _IONBF let me know.
setvbuf(fifo->file, NULL, _IOFBF, fifo->size / 8);
}
}