#endif
#include <sys/types.h>
-#include <sys/stat.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
#include <vlc_sout.h>
#include <vlc_block.h>
#include <vlc_charset.h>
-#include "vlc_strings.h"
+#include <vlc_strings.h>
#if defined( WIN32 ) && !defined( UNDER_CE )
# include <io.h>
#define APPEND_LONGTEXT N_( "Append to file if it exists instead " \
"of replacing it.")
-vlc_module_begin();
- set_description( N_("File stream output") );
- set_shortname( N_("File" ));
- set_capability( "sout access", 50 );
- set_category( CAT_SOUT );
- set_subcategory( SUBCAT_SOUT_ACO );
- add_shortcut( "file" );
- add_shortcut( "stream" );
- add_bool( SOUT_CFG_PREFIX "append", 0, NULL, APPEND_TEXT,APPEND_LONGTEXT,
- true );
- set_callbacks( Open, Close );
-vlc_module_end();
+vlc_module_begin ()
+ set_description( N_("File stream output") )
+ set_shortname( N_("File" ))
+ set_capability( "sout access", 50 )
+ set_category( CAT_SOUT )
+ set_subcategory( SUBCAT_SOUT_ACO )
+ add_shortcut( "file" )
+ add_shortcut( "stream" )
+ add_bool( SOUT_CFG_PREFIX "append", false, NULL, APPEND_TEXT,APPEND_LONGTEXT,
+ true )
+ set_callbacks( Open, Close )
+vlc_module_end ()
/*****************************************************************************
if( !strcmp( p_access->psz_path, "-" ) )
{
+#ifndef UNDER_CE
#ifdef WIN32
setmode (fileno (stdout), O_BINARY);
#endif
fd = dup (fileno (stdout));
msg_Dbg( p_access, "using stdout" );
+#else
+#warning stdout is not supported on Windows Mobile, but may be used on Windows CE
+ fd = -1;
+#endif
}
else
{