]> git.sesse.net Git - vlc/commitdiff
Support for large files in stream output
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 10 May 2005 11:39:32 +0000 (11:39 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 10 May 2005 11:39:32 +0000 (11:39 +0000)
Closes #48
Closes Debian #306110

modules/access_output/file.c

index 9131a4515a3624f6213a7ec8c940619588674bc4..668167ec1b2c5cf06c96ead4c381b9faf465e0bc 100644 (file)
@@ -51,6 +51,9 @@
 #ifndef STDOUT_FILENO
 #   define STDOUT_FILENO 1
 #endif
+#ifndef O_LARGEFILE
+#   define O_LARGEFILE 0
+#endif
 
 /*****************************************************************************
  * Module descriptor
@@ -115,7 +118,7 @@ static int Open( vlc_object_t *p_this )
         msg_Err( p_access, "no file name specified" );
         return VLC_EGENERIC;
     }
-    i_flags = O_RDWR|O_CREAT;
+    i_flags = O_RDWR|O_CREAT|O_LARGEFILE;
 
     var_Get( p_access, SOUT_CFG_PREFIX "append", &val );
     if( val.b_bool )