From: RĂ©mi Denis-Courmont Date: Tue, 10 May 2005 11:39:32 +0000 (+0000) Subject: Support for large files in stream output X-Git-Tag: 0.8.2~277 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d4cfab5ada7f827ff45f1ef4965b23a9cc57c87b;p=vlc Support for large files in stream output Closes #48 Closes Debian #306110 --- diff --git a/modules/access_output/file.c b/modules/access_output/file.c index 9131a4515a..668167ec1b 100644 --- a/modules/access_output/file.c +++ b/modules/access_output/file.c @@ -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 )