]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
Enable O_DIRECT by default
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 8 May 2010 20:49:06 +0000 (22:49 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 8 May 2010 20:49:06 +0000 (22:49 +0200)
src/recorder/ffmpeg.c

index 777637957b25b6b1460cf8e7837ee96470b3f740..a2167e299cf11b1d5cdb0fa3a35105bb78ca8cdd 100644 (file)
@@ -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);