]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavformat/avio.h
Use O_DIRECT buffer flushing only when we operate really on O_DIRECT file
[frescor/ffmpeg.git] / libavformat / avio.h
index 3340a12cde71f50dfa1bade919532dd047f5120d..b8b35afe84e4b25ce7b5ba93073ac3a5707bec76 100644 (file)
@@ -64,7 +64,7 @@ typedef struct URLPollEntry {
 #define URL_RDONLY 0
 #define URL_WRONLY 1
 #define URL_RDWR   2
-#define URL_DIRECT 2           /* Use O_DIRECT for file access */
+#define URL_DIRECT 4
 
 typedef int URLInterruptCB(void);
 
@@ -198,6 +198,7 @@ typedef struct {
     int must_flush; /**< true if the next seek should flush */
     int eof_reached; /**< true if eof reached */
     int write_flag;  /**< true if open for writing */
+    int o_direct_flag; /**< true if the underlaying file is open with O_DIRECT */
     int is_streamed;
     int max_packet_size;
     unsigned long checksum;