From 616e23d20d1958157405433ea349c31ea4e920b7 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 8 May 2010 22:49:06 +0200 Subject: [PATCH] Enable O_DIRECT by default --- src/recorder/ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/recorder/ffmpeg.c b/src/recorder/ffmpeg.c index 7776379..a2167e2 100644 --- a/src/recorder/ffmpeg.c +++ b/src/recorder/ffmpeg.c @@ -3506,6 +3506,7 @@ static void opt_output_file(const char *filename) } /* open the file */ + o_direct = 1; if (url_fopen(&oc->pb, filename, o_direct ? URL_RDWR|URL_DIRECT : URL_WRONLY) < 0) { fprintf(stderr, "Could not open '%s'\n", filename); av_exit(1); -- 2.39.2